pub type Constraint3d = Constraint3d;Expand description
A 3-D sketch’s constraint as a program holds it.
Aliased Type§
pub enum Constraint3d {
Coincident {
a: PointId,
b: PointId,
},
Coordinate {
point: PointId,
axis: Coordinate,
value: Scalar,
},
Distance {
a: PointId,
b: PointId,
value: Scalar,
},
Length {
line: CurveId,
value: Scalar,
},
Radius {
arc: CurveId,
value: Scalar,
},
Parallel {
a: CurveId,
b: CurveId,
},
ParallelTo {
line: CurveId,
direction: Vector<3>,
},
TangentTo {
curve: CurveId,
end: End,
direction: Vector<3>,
},
OnCurve {
point: PointId,
curve: CurveId,
},
Tangent {
a: CurveId,
b: CurveId,
},
HelixEnd {
helix: CurveId,
},
}Variants§
Coincident
a and b are the same point.
Coordinate
The coordinate axis of point is value.
Distance
Length
The length of a line.
Radius
The radius of an arc.
Parallel
Two lines are parallel.
ParallelTo
A line runs along direction: an axis, a straight edge.
TangentTo
An arc or a spline leaves (end its start) or arrives (its end)
along direction, either way along it.
OnCurve
point lies on curve: within a line or an arc’s full circle, or
on a reference curve.
Tangent
Two curves meeting at an end of each go on smoothly there.
HelixEnd
The end of a helix is where the rest of it says.