sketch

A two-dimensional curve drawing.

Details

A sketch is a set of two-dimensional curves. It can be generated by adding multiple curves to the sketch.

Example

 curve c1 = <[8,0]> -> arc( <[0,0]>, 2PI )
 curve c2 = <[4,3]> -> arc( <[3,3]>, 2PI )
 curve c3 = <[-4,3]> -> arc( <[-3,3]>, 2PI )
 curve c4 = <[5,-1.5]> -> arc_to( <[-5,-1.5]>, 5.5, false ) -> arc_to( <[5,-1.5]>, 5.2 )

 sketch s = c1 - c2 - c3 - c4
 

A smiley contour sketch.

Casts To

string

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