figureone
    Preparing search index...

    Interface OBJ_PrismPoints

    Prism options object.

    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.

    • base TypeParsablePoint[] — base border points defined in the XY plane - the points should be defined in the counter-clock-wise direction.
    • baseTriangles TypeParsablePoint[] — 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.
    • length number — length of the prism
    • transform TypeParsableTransform — transform to apply to all points of prism
    • lines boolean — 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)