pub enum Geometry {
Point {
at: Vector3,
},
Line {
point: Vector3,
direction: Vector3,
},
Plane {
point: Vector3,
normal: Vector3,
},
Rim {
center: Vector3,
radius: Scalar,
},
Curve {
curve: NurbCurve3D,
},
Surface {
surface: NurbSurface3D,
},
}Expand description
A point, a line or a plane of a part, in its own frame — or what a point is kept on: a curve, a face’s surface.
Variants§
Point
Line
The line through point along direction (any non-zero length).
Plane
The plane through point normal to normal (any non-zero length).
Rim
A circle’s center and its radius: what is kept that far off a face it rolls on.
Curve
A curve: an edge’s, a sketch’s.
Fields
§
curve: NurbCurve3DSurface
A face’s surface, its normal out of its solid.
Fields
§
surface: NurbSurface3DImplementations§
Source§impl Geometry
impl Geometry
Sourcepub fn placed(&self, pose: Option<&Pose<D>>) -> GeopResult<World>
pub fn placed(&self, pose: Option<&Pose<D>>) -> GeopResult<World>
Where pose puts it — or, with none, where it is: of a part that
never moves. The directions square to a line or a plane are chosen
in the part’s own frame — a free choice — and turn with it.
Sourcepub fn parameters(&self) -> Vec<Foot>
pub fn parameters(&self) -> Vec<Foot>
The parameters of its foot point: a curve’s t, a surface’s u
and v — each its domain, and whether it closes there.
Trait Implementations§
impl StructuralPartialEq for Geometry
Auto Trait Implementations§
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnsafeUnpin for Geometry
impl UnwindSafe for Geometry
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