Returns the shape area.
Surface area of the shape.
Calculates the distance to another shape.
{Shape} Shape to measure the distance to.
Minimum distance between shapes.
Returns the edges of the current geometric shape.
Array of Shape objects representing the edges.
Extrudes the shape along Z.
{number} Extrusion distance along Z.
Extrusion result.
Extrudes the shape.
{number} Extrusion distance along X.
{number} Extrusion distance along Y.
{number} Extrusion distance along Z.
Extrusion result.
Returns the first curve parameter.
First parameter.
Interpolates points along the curve, returning the specified number of points.
{number} Number of interpolation points. If 0, the optimal number is determined automatically.
Array of interpolated points.
Checks whether the shape is empty.
True if the shape is empty.
Returns the last parameter of the curve or wire.
Last parameter.
Returns the curve length or shape perimeter.
Length.
Returns the length of the shape.
Shape length.
Returns the point on the curve at a given parameter.
{number} Parameter at which to find the point.
Point on the curve.
Returns the points (vertices) of the shape; same as vertices().
Optionalall: boolean
{boolean} If true, returns all points; otherwise only unique points [default=false].
Array of points.
Rotates about X, Y, and Z.
{number} Angle about X in degrees.
{number} Angle about Y in degrees.
{number} Angle about Z in degrees.
New shape after rotation.
Saves the shape to a STEP file.
{string} File path.
True if the file was written.
Translates the shape by the specified X, Y, and Z displacements.
{number} Displacement along X.
{number} Displacement along Y.
{number} Displacement along Z.
New shape after translation.
Translates the shape along X only.
{number} Displacement along X.
New shape.
Translates the shape along Y only.
{number} Displacement along Y.
New shape.
Translates the shape along Z only.
{number} Displacement along Z.
New shape.
Returns the vertices of the shape.
Optionalall: boolean
{boolean} If true, returns all points; otherwise only unique points [default=false].
Array of points.
Returns the shape volume.
Shape volume.
Shape type