Package snap.gfx3d
Class VertexArrayUtils
java.lang.Object
snap.gfx3d.VertexArrayUtils
Utility methods for VertexArray.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addLineStrokePoints
(VertexArray vertexArray, Point3D p0, Point3D p1, Vector3D lineNormal, double lineWidth) Adds triangles to VertexArray for a stroked line between given points.static VertexArray
getStrokedShapeTriangleArray
(PathIter pathIter, Color aColor, Stroke aStroke, double anOffset) Returns a VertexArray for stroked path.
-
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.
-