Package org.mt4j.util.math

Examples of org.mt4j.util.math.Vertex


  public void closePath() throws ParseException {
    if (verbose)
      System.out.println("close Path");
   
    //Close the current contour with the previous MoveTo Vertex
    Vertex lastPointCopy = (Vertex)currentSubPath.get(0).getCopy();
    currentSubPath.add(lastPointCopy);
    pathPoints.add(lastPointCopy);
   
    //Save the current contour and clear the current for the next contour
    Vertex[] currentSplitPathArr = (Vertex[])currentSubPath.toArray(new Vertex[currentSubPath.size()]);
View Full Code Here


    public PlaySymbol(PApplet pApplet, Vector3D centerPoint, float radiusX,  float radiusY, int segments) {
      super(pApplet, centerPoint, radiusX, radiusY, segments);
     
      Vertex[] vertices = new Vertex[]{
        new Vertex(centerPoint.x - radiusX/3f, centerPoint.y - radiusY/3f, centerPoint.z),
        new Vertex(centerPoint.x + radiusX/2.5f, centerPoint.y, centerPoint.z),
        new Vertex(centerPoint.x - radiusX/3f, centerPoint.y + radiusY/3f, centerPoint.z),
       
        new Vertex(centerPoint.x - radiusX/3f, centerPoint.y - radiusY/3f, centerPoint.z),
      };
      MTPolygon triangle = new MTPolygon(pApplet, vertices);
      triangle.setPickable(false);
      triangle.setNoFill(true);
      triangle.setStrokeColor(new MTColor(0,0,0,255));
View Full Code Here

//                ,new Vertex( 0.0f, 0.0f, 0.0f)
//                ,new Vertex( 1.0f, 0.0f, 0.0f)
//
//                ,new Vertex( 1.0f, 1.0f, 0.0f)
//                ,new Vertex( 0.0f, 1.0f, 0.0f)
               new Vertex( -size*0.5f, -size*0.5f, size*0.5f, 0,0)
                  ,new Vertex( size*0.5f, -size*0.5f, size*0.5f, 1,0)
                  ,new Vertex( size*0.5f, size*0.5f, size*0.5f1,1)
                  ,new Vertex(-size*0.5f, size*0.5f, size*0.5f0,1)

                  ,new Vertex(-size*0.5f, -size*0.5f, -size*0.5f, 1,0)
                  ,new Vertex( size*0.5f, -size*0.5f, -size*0.5f, 0,0)

                  ,new Vertex( size*0.5f, size*0.5f, -size*0.5f, 0,1)
                  ,new Vertex( -size*0.5f, size*0.5f, -size*0.5f, 1,1)
            }
//        ,new Vector3D[]{
//           
//        }
            ,new int[]{
View Full Code Here

TOP

Related Classes of org.mt4j.util.math.Vertex

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.