Struct truck_topology::Solid [−][src]
Solid, attached to a closed shells.
Implementations
impl<P: Clone, C: Clone, S: Clone> Solid<P, C, S>
[src]
pub fn compress(&self) -> CompressedSolid<P, C, S>
[src]
Compresses the solid into the serialized compressed solid.
pub fn extract(csolid: CompressedSolid<P, C, S>) -> Result<Self>
[src]
Extracts the serialized compressed shell into the shell.
impl<P, C, S> Solid<P, C, S>
[src]
pub fn new(boundaries: Vec<Shell<P, C, S>>) -> Solid<P, C, S>
[src]
create the shell whose boundaries is boundary.
Panic
All boundary must be non-empty, connected, and closed manifold.
pub fn try_new(boundaries: Vec<Shell<P, C, S>>) -> Result<Solid<P, C, S>>
[src]
create the shell whose boundaries is boundary.
Failure
All boundary must be non-empty, connected, and closed manifold.
pub fn new_unchecked(boundaries: Vec<Shell<P, C, S>>) -> Solid<P, C, S>
[src]
create the shell whose boundaries is boundary.
Remarks
This method is prepared only for performance-critical development and is not recommended. This method does NOT check whether all boundary is non-empty, connected, and closed. The programmer must guarantee this condition before using this method.
pub fn debug_new(boundaries: Vec<Shell<P, C, S>>) -> Solid<P, C, S>
[src]
create the shell whose boundaries is boundary.
Remarks
This method checks whether all boundary is non-empty, connected, and closed in the debug mode. The programmer must guarantee this condition before using this method.
pub fn boundaries(&self) -> &Vec<Shell<P, C, S>>ⓘ
[src]
Returns the reference of boundary shells
pub fn into_boundaries(self) -> Vec<Shell<P, C, S>>ⓘ
[src]
Returns the boundary shells
impl<P: Tolerance, C: Curve<Point = P>, S: Surface<Point = C::Point, Vector = C::Vector, Curve = C>> Solid<P, C, S>
[src]
pub fn is_geometric_consistent(&self) -> bool
[src]
Returns the consistence of the geometry of end vertices and the geometry of edge.
Trait Implementations
impl<P: Clone, C: Clone, S: Clone> Clone for Solid<P, C, S>
[src]
impl<P: Debug, C: Debug, S: Debug> Debug for Solid<P, C, S>
[src]
impl<P: Eq, C: Eq, S: Eq> Eq for Solid<P, C, S>
[src]
impl<P: PartialEq, C: PartialEq, S: PartialEq> PartialEq<Solid<P, C, S>> for Solid<P, C, S>
[src]
impl<P, C, S> StructuralEq for Solid<P, C, S>
[src]
impl<P, C, S> StructuralPartialEq for Solid<P, C, S>
[src]
Auto Trait Implementations
impl<P, C, S> RefUnwindSafe for Solid<P, C, S>
[src]
impl<P, C, S> Send for Solid<P, C, S> where
C: Send,
P: Send,
S: Send,
[src]
C: Send,
P: Send,
S: Send,
impl<P, C, S> Sync for Solid<P, C, S> where
C: Send,
P: Send,
S: Send,
[src]
C: Send,
P: Send,
S: Send,
impl<P, C, S> Unpin for Solid<P, C, S>
[src]
impl<P, C, S> UnwindSafe for Solid<P, C, S>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,