Version 0.59.0

Curve Link Operator

Appends a curve segment to a curve or to a start point.

Signatures

  •   elmt1 -> segm1
  •   curve1 ->= segm1

Details

Binary operators that combines a start point or a curve with a curve segment to form a combined curve.

The first signature combines elmt1 with the new segment segm1 and returns the new curve. The two elements are not changed by this. This operator is left-associative and can be chained.

The second signature expands curve1 by segment code segm1 .

Example

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

Return value

A curve that results from the appending of the segment.

Parameters

elmt1

Either a vector defining the starting point of a new curve or a curve. elmt1 is not modified by this way of applying the curve link operator.

curve1

A curve object that gets modified by the addition of segm1.

segm1

A curve segment that gets appended to the curve. This can either be a vector point (what implicitly adds a segment constructor of type line_to), or an explicit segment constructor.

See also

🗙

Search results for