pub struct Geometry<S: Scalar> {
pub point: Option<Vector3<S>>,
pub line: Option<Axis<S>>,
pub plane: Option<CoordinateSystem<S>>,
pub arc: Option<Arc<S>>,
pub round: Option<Axis<S>>,
pub curve: Option<NurbCurve3D<S>>,
pub frame: Option<CoordinateSystem<S>>,
}Expand description
Everything an entity can be used as. An entity is usually several at once: a straight edge is a line and a curve, a circular edge an arc, a curve and something round, a datum point a point and a frame.
Fields§
§point: Option<Vector3<S>>§line: Option<Axis<S>>The line it runs along: a straight edge, an axis.
plane: Option<CoordinateSystem<S>>The plane it lies in, as a frame with w the normal and u/v a
sketch’s x/y on it.
arc: Option<Arc<S>>§round: Option<Axis<S>>The axis it turns around: a circular edge, a cylinder, a cone.
curve: Option<NurbCurve3D<S>>An edge’s curve, whatever its shape.
frame: Option<CoordinateSystem<S>>Its own axes, if it has any: a datum’s frame, the world’s for the origin, axes and base planes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Geometry<S>where
S: Freeze,
impl<S> RefUnwindSafe for Geometry<S>where
S: RefUnwindSafe,
impl<S> Send for Geometry<S>
impl<S> Sync for Geometry<S>
impl<S> Unpin for Geometry<S>where
S: Unpin,
impl<S> UnsafeUnpin for Geometry<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Geometry<S>where
S: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more