Skip to main content

Constraints

Constraint qualifiers control the spatial relationship between geometries in 2D sketches. They are used with tangent geometry functions like tLine(), tCircle(), and tArc().

import { outside, enclosed, enclosing, unqualified } from 'fluidcad/constraints';

Functions

outside()

outside(sceneObject: SceneObject): QualifiedGeometry

Qualifies a geometry as being on the outside of the constraining object.

ParameterTypeDescription
sceneObjectSceneObjectThe geometry to qualify.

enclosed()

enclosed(sceneObject: SceneObject): QualifiedGeometry

Qualifies a geometry as being enclosed by the constraining object.

ParameterTypeDescription
sceneObjectSceneObjectThe geometry to qualify.

enclosing()

enclosing(sceneObject: SceneObject): QualifiedGeometry

Qualifies a geometry as enclosing the constraining object.

ParameterTypeDescription
sceneObjectSceneObjectThe geometry to qualify.

unqualified()

unqualified(sceneObject: SceneObject): QualifiedGeometry

Removes any existing constraint qualification from a geometry.

ParameterTypeDescription
sceneObjectSceneObjectThe geometry to unqualify.