pub enum Sketch3dResolvedReference {
Point(Vec3),
Line(Vec3, Vec3),
Arc(Vec3, Vec3, Vec3),
Plane(Vec3, 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 straight edge, a datum axis, a cylinder’s axis, a closed circular
edge’s axis: a fixed construction line [a, b].
Arc(Vec3, Vec3, Vec3)
A circular arc edge: [center, start, end].
Plane(Vec3, Vec3)
A planar face or a datum/construction plane: [origin, normalTip].
Implementations§
Source§impl ResolvedReference
impl ResolvedReference
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).
Trait Implementations§
Source§impl Clone for ResolvedReference
impl Clone for ResolvedReference
Auto Trait Implementations§
impl Forget for ResolvedReference
impl Freeze for ResolvedReference
impl RefUnwindSafe for ResolvedReference
impl Send for ResolvedReference
impl Sync for ResolvedReference
impl Unpin for ResolvedReference
impl UnsafeUnpin for ResolvedReference
impl UnwindSafe for ResolvedReference
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more