curve

A curve in 2d or 3d.

Details

Describes a curve, i.e. a one-dimensional line that may be defined either in 2d (in the x/y plane) or in 3d.

Example

 curve triangle = <[1.0, 1.0]> -> <[2.0, 1.0]> -> <[1.5, 2.0]> -><-
 make extrusion( triangle, <[0.0, 0.0, 1.0]> )
 

Casts To

string
sketch

Members

vector front()

Returns the starting point of the curve, if this is defined. Otherwise it returns <[0.0, 0.0, 0.0]>.

vector back()

Returns the end point of the curve, if this is defined. Otherwise it returns <[0.0, 0.0, 0.0]>.

See also