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.
linesboolean — if true then points representing
the edges of the prism will be returned. If false, then points
representing triangle bases and associated normals will be returned.
(false)
Prism options object.
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 prismtransformTypeParsableTransform — transform to apply to all points of prismlinesboolean— iftruethen points representing the edges of the prism will be returned. Iffalse, then points representing triangle bases and associated normals will be returned. (false)