kcl-std → functions → line

lineFunction in std::sketch

Extend the current sketch with a new straight line.

Arguments

NameTypeDescriptionRequired
sketchSketchWhich sketch should this path be added to?Yes
endAbsolutePoint2dWhich absolute point should this line go to? Incompatible with end.No
endPoint2dHow far away (along the X and Y axes) should this line go? Incompatible with endAbsolute.No
tagTagDeclCreate a new tag which refers to this line.No

Returns

Sketch - A sketch is a collection of paths.

Examples

Found a typo?