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

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


              }
              if (pointIdxList.size() == 3) {
                String a = stripTextureIndex(pointIdxList.get(0));
                String b = stripTextureIndex(pointIdxList.get(1));
                String c = stripTextureIndex(pointIdxList.get(2));
                Face face = new Face(Integer.parseInt(a) - 1, Integer.parseInt(b) - 1, Integer.parseInt(c) - 1);
                faces.add(face);
              }
            }
          }
        }
View Full Code Here


          fIdx = idx;
          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;
View Full Code Here

    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));
    faces.add(new Face(2, 4, 5));
    faces.add(new Face(3, 0, 7));
    faces.add(new Face(3, 7, 4));
    faces.add(new Face(0, 1, 6));
    faces.add(new Face(0, 6, 7));
    faces.add(new Face(1, 2, 5));
    faces.add(new Face(1, 5, 6));
    faces.add(new Face(5, 4, 7));
    faces.add(new Face(5, 7, 6));

    Mesh mesh = new Mesh(points, faces);

    SceneBuilder scene = new SceneBuilder();
    scene
View Full Code Here

TOP

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

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.