Overview
/
KCL Standard Library
/
Functions
/
solver::fixed

solver::fixedFunction in std::solver

Constrain a point to be fixed to a position.

fixed() is an alias for coincident(). By convention, fixed() is used when one of the points is a known location, not solved with constraints and not another point in the sketch.

Calling fixed() with one segment, such as fixed(edge), is invalid and produces an argument error. fixed() requires an array of at least two points or segments. To anchor a point to a fixed position, pass both values, for example fixed([edge.start, ORIGIN]).

See coincident() for more info.

Arguments

NameTypeDescriptionRequired
points[Segment or Point2d; 2+]Two or more sketch entities that should be coincident. When more than two inputs are provided, each item must be a point or ORIGIN.Yes

Examples

Rendered example of solver::fixed 0