Package org.jwildfire.create.tina.meshgen.marchingcubes

Examples of org.jwildfire.create.tina.meshgen.marchingcubes.Point


            String key = lineTokenizer.nextToken();
            if ("v".equals(key)) {
              String x = lineTokenizer.nextToken();
              String y = lineTokenizer.nextToken();
              String z = lineTokenizer.nextToken();
              Point point = new Point(Float.parseFloat(x), Float.parseFloat(y), Float.parseFloat(z));
              vertices.add(point);
            }
            else if ("vn".equals(key)) {
              String x = lineTokenizer.nextToken();
              String y = lineTokenizer.nextToken();
              String z = lineTokenizer.nextToken();
              Point point = new Point(Float.parseFloat(x), Float.parseFloat(y), Float.parseFloat(z));
              vertexNormals.add(point);
            }
            else if ("f".equals(key)) {
              List<String> pointIdxList = new ArrayList<String>();
              while (lineTokenizer.hasMoreElements()) {
View Full Code Here


          break;
        }
      }
      if (fIdx >= 0) {
        Face face = new Face(allFaces.get(fIdx));
        Point p1 = new Point(allPoints.get(face.a));
        Point p2 = new Point(allPoints.get(face.b));
        Point p3 = new Point(allPoints.get(face.c));
        face.a = points.size();
        face.b = points.size() + 1;
        face.c = points.size() + 2;

        points.add(p1);
View Full Code Here

  public static final String SHADER_SHINY = "shader_shiny";

  public static SceneBuilder getExampleScene1() {
    List<Point> points = new ArrayList<Point>();
    points.add(new Point(7.1, 7.1, -1.0));
    points.add(new Point(7.1, -7.1, -1.0));
    points.add(new Point(-7.1, -7.1, -1.0));
    points.add(new Point(-7.1, 7.1, -1.0));
    points.add(new Point(-7.1, 7.1, -1.61));
    points.add(new Point(-7.1, -7.1, -1.61));
    points.add(new Point(7.1, -7.1, -1.61));
    points.add(new Point(7.1, 7.1, -1.61));

    List<Face> faces = new ArrayList<Face>();
    faces.add(new Face(0, 3, 2));
    faces.add(new Face(0, 2, 1));
    faces.add(new Face(2, 3, 4));
View Full Code Here

TOP

Related Classes of org.jwildfire.create.tina.meshgen.marchingcubes.Point

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.