[−][src]Struct mgf::ConvexMesh
A closed convex mesh. Represented by a point soup.
Fields
x: Vector3<f32>
sum: Vector3<f32>
verts: Vec<Point3<f32>>
Methods
impl ConvexMesh
[src]
pub fn new() -> Self
[src]
pub fn with_capacity(cap: usize) -> Self
[src]
pub fn push(&mut self, p: Point3<f32>)
[src]
Trait Implementations
impl Shape for ConvexMesh
[src]
fn center(&self) -> Point3<f32>
[src]
fn closest_point(&self, _to: Point3<f32>) -> Point3<f32>
[src]
fn set_pos(&mut self, p: Point3<f32>)
[src]
Sets the center of the shape to p.
impl Volumetric for ConvexMesh
[src]
fn rotate<R: Rotation3<f32>>(self, rot: R) -> ConvexMesh
[src]
fn rotate_about<R: Rotation3<f32>>(self, r: R, p: Point3<f32>) -> Self
[src]
Rotates the object around a point.
impl Convex<Point3<f32>> for ConvexMesh
[src]
impl Clone for ConvexMesh
[src]
fn clone(&self) -> ConvexMesh
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<Vec<Point3<f32>>> for ConvexMesh
[src]
impl AddAssign<Vector3<f32>> for ConvexMesh
[src]
fn add_assign(&mut self, v: Vector3<f32>)
[src]
impl SubAssign<Vector3<f32>> for ConvexMesh
[src]
fn sub_assign(&mut self, v: Vector3<f32>)
[src]
Auto Trait Implementations
impl Send for ConvexMesh
impl Sync for ConvexMesh
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,