pub enum Sketch3dResolvedReference {
Point(Vec3),
Line(Vec3, Vec3),
Segment(Vec3, Vec3),
CircleAxis(Vec3, Vec3),
Arc(Vec3, Vec3, Vec3),
Plane(Vec3, Vec3),
Curve(Vec<Vec3>),
}Expand description
What a model reference resolves to, in the shapes the sketch materializes.
Variants§
Point(Vec3)
A vertex, a published point, a sphere’s centre: one fixed point.
Line(Vec3, Vec3)
A datum axis or a cylinder’s axis, an infinite line in all but name: a
fixed construction line [a, b] whose origin is free to slide.
Segment(Vec3, Vec3)
A model EDGE, straight or a best-effort chord: [start, end], exact.
CircleAxis(Vec3, Vec3)
A closed circular edge: [center, center + axis * radius], exact, so
the centre follows the model and the tip carries the radius.
Arc(Vec3, Vec3, Vec3)
A circular arc edge: [center, start, end].
Plane(Vec3, Vec3)
A planar face or a datum/construction plane: [origin, normalTip].
Curve(Vec<Vec3>)
A free-form edge: the control points of a fitted cubic bezier chain
(see curve_reference_controls).
Implementations§
Source§impl ResolvedReference
impl ResolvedReference
Sourcepub fn as_recorded(self, kind: &str) -> ResolvedReference
pub fn as_recorded(self, kind: &str) -> ResolvedReference
As a saved record of kind holds it: a free-form edge linked before
curves existed is a line chord, and stays one so the points under its
constraints are not re-minted.
Sourcepub fn geometry_type(&self) -> Option<&'static str>
pub fn geometry_type(&self) -> Option<&'static str>
The construction geometry type the editor draws it with (None for a
lone point).