[−][src]Struct rust_3d::Mesh3D
Mesh3D, a mesh with tri-faces within 3D space
Methods
impl<P> Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
pub fn reserve_vertices(&mut self, n: usize)
[src]
Reserves number of vertices
pub fn reserve_faces(&mut self, n: usize)
[src]
Reserves number of faces
Trait Implementations
impl<P> HasBoundingBox3DMaybe for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
fn bounding_box_maybe(&self) -> Result<BoundingBox3D>
[src]
impl<P> HasCenterOfGravity3D for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
fn center_of_gravity(&self) -> Result<Point3D>
[src]
impl<P> IsFaceEditableMesh<P, Face3> for Mesh3D<P> where
P: IsEditable3D + IsBuildable3D + Clone,
[src]
P: IsEditable3D + IsBuildable3D + Clone,
fn add_face(&mut self, v1: P, v2: P, v3: P) -> FId
[src]
fn try_add_connection(&mut self, vid1: VId, vid2: VId, vid3: VId) -> Result<FId>
[src]
impl<P> IsVertexEditableMesh<P, Face3> for Mesh3D<P> where
P: IsEditable3D + IsBuildable3D + Clone,
[src]
P: IsEditable3D + IsBuildable3D + Clone,
fn add_vertex(&mut self, vertex: P) -> VId
[src]
fn change_vertex(&mut self, vid: VId, vertex: P) -> Result<()>
[src]
impl<P> IsMatrix4Transformable for Mesh3D<P> where
P: Is3D + IsMatrix4Transformable + Clone,
[src]
P: Is3D + IsMatrix4Transformable + Clone,
impl<P> IsMesh<P, Face3> for Mesh3D<P> where
P: Is3D + Clone,
[src]
P: Is3D + Clone,
fn num_faces(&self) -> usize
[src]
fn num_vertices(&self) -> usize
[src]
fn face_vertex_ids(&self, faceid: FId) -> Result<Face3>
[src]
fn face_vertices(&self, faceid: FId) -> Result<[P; 3]>
[src]
fn vertex(&self, vertexid: VId) -> Result<P>
[src]
impl<P> IsMovable3D for Mesh3D<P> where
P: Is3D + IsMovable3D,
[src]
P: Is3D + IsMovable3D,
impl<P> IsScalable for Mesh3D<P> where
P: IsEditable3D,
[src]
P: IsEditable3D,
impl<P: Clone> Clone for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
impl<P: Default> Default for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
impl<P: Eq> Eq for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
impl<P: Ord> Ord for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
fn cmp(&self, other: &Mesh3D<P>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<P: PartialEq> PartialEq<Mesh3D<P>> for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
impl<P: PartialOrd> PartialOrd<Mesh3D<P>> for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
fn partial_cmp(&self, other: &Mesh3D<P>) -> Option<Ordering>
[src]
fn lt(&self, other: &Mesh3D<P>) -> bool
[src]
fn le(&self, other: &Mesh3D<P>) -> bool
[src]
fn gt(&self, other: &Mesh3D<P>) -> bool
[src]
fn ge(&self, other: &Mesh3D<P>) -> bool
[src]
impl<P: Debug> Debug for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
impl<P: Hash> Hash for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<P> StructuralPartialEq for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
impl<P> StructuralEq for Mesh3D<P> where
P: Is3D,
[src]
P: Is3D,
Auto Trait Implementations
impl<P> Send for Mesh3D<P> where
P: Send,
P: Send,
impl<P> Sync for Mesh3D<P> where
P: Sync,
P: Sync,
impl<P> Unpin for Mesh3D<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for Mesh3D<P> where
P: UnwindSafe,
P: UnwindSafe,
impl<P> RefUnwindSafe for Mesh3D<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
Blanket Implementations
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.
fn to_owned(&self) -> T
[src]
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 = !
The type returned in the event of a conversion error.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,