Package snap.gfx3d

Class VertexArrayUtils

java.lang.Object
snap.gfx3d.VertexArrayUtils

public class VertexArrayUtils extends Object
Utility methods for VertexArray.
  • Constructor Details

    • VertexArrayUtils

      public VertexArrayUtils()
  • Method Details

    • getStrokedShapeTriangleArray

      public static VertexArray getStrokedShapeTriangleArray(PathIter pathIter, Color aColor, Stroke aStroke, double anOffset)
      Returns a VertexArray for stroked path.
    • addLineStrokePoints

      public static void addLineStrokePoints(VertexArray vertexArray, Point3D p0, Point3D p1, Vector3D lineNormal, double lineWidth)
      Adds triangles to VertexArray for a stroked line between given points.