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: Vector3,
},
TangentTo {
curve: CurveId,
end: End,
direction: Vector3,
},
OnCurve {
point: PointId,
curve: CurveId,
},
Tangent {
a: CurveId,
b: CurveId,
},
HelixEnd {
helix: CurveId,
},
}Expand description
The constraints of a 3-D sketch. Lengths are in sketch units.
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.
Implementations§
Trait Implementations§
Source§impl Clone for Constraint3d
impl Clone for Constraint3d
Source§fn clone(&self) -> Constraint3d
fn clone(&self) -> Constraint3d
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Constraint3d
impl Debug for Constraint3d
Source§impl<'de> Deserialize<'de> for Constraint3d
impl<'de> Deserialize<'de> for Constraint3d
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Constraint3d
impl PartialEq for Constraint3d
Source§impl Serialize for Constraint3d
impl Serialize for Constraint3d
impl StructuralPartialEq for Constraint3d
Auto Trait Implementations§
impl Freeze for Constraint3d
impl RefUnwindSafe for Constraint3d
impl Send for Constraint3d
impl Sync for Constraint3d
impl Unpin for Constraint3d
impl UnsafeUnpin for Constraint3d
impl UnwindSafe for Constraint3d
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