Examples of Face


Examples of org.gbcpainter.game.model.grid.Face

    g2d.translate( - screenCenter.x/2, - screenCenter.y/2 );
    final Level level = getLevel();
    final Player player = level.getPlayer();

    for (Map.Entry<Face, Integer> faceEntry : this.faces.entrySet()) {
      final Face face = faceEntry.getKey();
      face.setColored( level.isFaceColored( faceEntry.getValue() ) );
      face.draw( g2d );
    }

    for (Pipe pipe : level.getMap().edgeSet()) {
      pipe.draw( g2d );
    }
View Full Code Here

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

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

          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

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

    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

Examples of org.kalimullin.fsraytracer.geometry.Face

            // Face parsing
            case "point-id":
                currentFacePoints.add(pointMap.get(Integer.parseInt(currentElementValue)));
                break;
            case "face":
                polygonMap.put(currentId, new Polygon(new Face(currentFacePoints)));
                break;
            // SceneObject parsing
            case "face-id":
                polygonSet.add(polygonMap.get(Integer.parseInt(currentElementValue)));
                break;
View Full Code Here

Examples of org.kalimullin.fsraytracer.geometry.Face

        pyramidSceneObjectSet = new HashSet<>();
        Point point1 = new Point(-1.8, -1.8, 0);
        Point point2 = new Point(1.8, -1.8, 0);
        Point point3 = new Point(0, 1.8, 0);
        Point point4 = new Point(0, 0, 1.2);
        Face face1 = new Face(point1, point2, point3);
        Face face2 = new Face(point1, point2, point4);
        Face face3 = new Face(point1, point4, point3);
        Face face4 = new Face(point4, point3, point2);
        Polygon polygon1 = new Polygon(face1);
        Polygon polygon2 = new Polygon(face2);
        Polygon polygon3 = new Polygon(face3);
        Polygon polygon4 = new Polygon(face4);
        pyramidSceneObjectSet.add(new PolygonalSceneObject("pyramid",
View Full Code Here

Examples of org.kalimullin.fsraytracer.geometry.Face

                    for(int pointsIndex = 1; pointsIndex <= pointsCount; pointsIndex++) {
                        pointSet.add(pointMap.get(((Number)xpath.evaluate("(point-id)[" + pointsIndex + "]",
                                faceNode, XPathConstants.NUMBER)).intValue()));
                    }
                }
                Face face = new Face(pointSet);
                faceMap.put(id, face);
                logger.debug("Added Face[{}]: {}", id, face);
            }
        } catch (XPathExpressionException e) {
            logger.error("Wrong XPath expression:", e);
View Full Code Here

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

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

Examples of toxi.geom.mesh.Face

            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
Copyright © 2018 www.massapi.com. 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.