Version 0.59.0

stroke_xy

Creates a sketch from a line by adding a certain width.

Signatures

  •   stroke_xy( curve c, float width )

Details

The function generates a 2-dimensional sketch from the input curve c by projecting it onto the X-Y plane and giving it a stroke width of thickness width.

Example

 curve c = <[0,0]> -> bezier( <[5,-9]>, <[-9,-6]>, <[5,1]> )
 make extrusion( stroke_xy( c, 1.0 ), <[0,0,1]> )
 

The object resulting from the example.

Return value

A sketch of the thickened line.

Parameters

c

A general curve that gets projected onto the X-Y plane and widened by the function to generate the output sketch.

width

Line width given to the line. This must be larger that zero and larger than smin (see Tesselation by resolution ).

🗙

Search results for