Struct truck_topology::Solid[][src]

pub struct Solid<P, C, S> { /* fields omitted */ }

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>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

Returns the reference of boundary shells

pub fn into_boundaries(self) -> Vec<Shell<P, C, S>>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[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]

impl<P, C, S> Sync for Solid<P, C, S> where
    C: Send,
    P: Send,
    S: Send
[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.