Package toxi.geom.mesh

Examples of toxi.geom.mesh.Face


      g.beginShape(PConstants.TRIANGLES);
      // iterate over all faces/triangles of the mesh
      //for(Face f : mesh.faces) {
      for (Iterator<?> i=mesh.faces.iterator(); i.hasNext();) {
        Face f=(Face)i.next();
        if (g.is3D()) {
          g.vertex(f.a.x, f.a.y, f.a.z);
          g.vertex(f.b.x, f.b.y, f.b.z);
          g.vertex(f.c.x, f.c.y, f.c.z);
        }
View Full Code Here


    g.beginShape(PConstants.TRIANGLES);
    // iterate over all faces/triangles of the mesh
    //for(Face f : mesh.faces) {
    for(Iterator<?> i=mesh.faces.iterator(); i.hasNext();) {
      Face f=(Face)i.next();
      if (g.is3D()) {
        g.vertex(f.a.x, f.a.y, f.a.z);
        g.vertex(f.b.x, f.b.y, f.b.z);
        g.vertex(f.c.x, f.c.y, f.c.z);
      }
View Full Code Here

            fill(255);
        }
        // draw all faces of the computed mesh
        int num = mesh.getNumFaces();
        for (int i = 0; i < num; i++) {
            Face f = mesh.faces.get(i);
            vertex(f.a);
            vertex(f.b);
            vertex(f.c);
        }
        endShape();
View Full Code Here

TOP

Related Classes of toxi.geom.mesh.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.