A prism base is defined in the XY plane, and it's length extends
into +z. Use transform to orient it in any other way.
Triangles will be created for the ends if the base is convex. If the base
is not convex, use baseTriangles to define the triangles.
baseTypeParsablePoint[] — base border points defined in the XY plane - the
points should be defined in the counter-clock-wise direction.
baseTrianglesTypeParsablePoint[] — triangles in the XY plane
that create the base fill. If the base is convex, then the triangles can be
auto-generated and this property left undefined.
lengthnumber — length of the prism
linesboolean — if true then points representing
the edges of the prism will be returned. If false, then points
representing triangle faces and associated normals will be returned.
(false)
Prism shape options object that extends OBJ_Generic3All and OBJ_FigurePrimitive
A prism base is defined in the XY plane, and it's length extends into +z. Use
transformto orient it in any other way.Triangles will be created for the ends if the base is convex. If the base is not convex, use
baseTrianglesto define the triangles.baseTypeParsablePoint[] — base border points defined in the XY plane - the points should be defined in the counter-clock-wise direction.baseTrianglesTypeParsablePoint[] — triangles in the XY plane that create the base fill. If the base is convex, then the triangles can be auto-generated and this property left undefined.lengthnumber— length of the prismlinesboolean— iftruethen points representing the edges of the prism will be returned. Iffalse, then points representing triangle faces and associated normals will be returned. (false)See
To test examples, append them to the boilerplate
Example
Example
Example