Struct mgf::ConvexMesh [−][src]
A closed convex mesh. Represented by a point soup.
Fields
x: Vector3<f32>
sum: Vector3<f32>
verts: Vec<Point3<f32>>
Methods
impl ConvexMesh
[src]
impl ConvexMesh
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn with_capacity(cap: usize) -> Self
[src]
pub fn with_capacity(cap: usize) -> Self
pub fn push(&mut self, p: Point3<f32>)
[src]
pub fn push(&mut self, p: Point3<f32>)
Trait Implementations
impl Clone for ConvexMesh
[src]
impl Clone for ConvexMesh
fn clone(&self) -> ConvexMesh
[src]
fn clone(&self) -> ConvexMesh
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[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 From<Vec<Point3<f32>>> for ConvexMesh
impl AddAssign<Vector3<f32>> for ConvexMesh
[src]
impl AddAssign<Vector3<f32>> for ConvexMesh
fn add_assign(&mut self, v: Vector3<f32>)
[src]
fn add_assign(&mut self, v: Vector3<f32>)
Performs the +=
operation.
impl SubAssign<Vector3<f32>> for ConvexMesh
[src]
impl SubAssign<Vector3<f32>> for ConvexMesh
fn sub_assign(&mut self, v: Vector3<f32>)
[src]
fn sub_assign(&mut self, v: Vector3<f32>)
Performs the -=
operation.
impl Shape for ConvexMesh
[src]
impl Shape for ConvexMesh
fn center(&self) -> Point3<f32>
[src]
fn center(&self) -> Point3<f32>
Returns the center of mass of the geometry, assuming a regular density.
fn closest_point(&self, _to: Point3<f32>) -> Point3<f32>
[src]
fn closest_point(&self, _to: Point3<f32>) -> Point3<f32>
Returns the closest point on the shape to the given point.
fn set_pos(&mut self, p: Point3<f32>)
[src]
fn set_pos(&mut self, p: Point3<f32>)
Sets the center of the shape to p.
impl Volumetric for ConvexMesh
[src]
impl Volumetric for ConvexMesh
fn rotate<R: Rotation3<f32>>(self, rot: R) -> ConvexMesh
[src]
fn rotate<R: Rotation3<f32>>(self, rot: R) -> ConvexMesh
Rotate the bound in place. This is useless for spheres.
fn rotate_about<R: Rotation3<f32>>(self, r: R, p: Point3<f32>) -> Self
[src]
fn rotate_about<R: Rotation3<f32>>(self, r: R, p: Point3<f32>) -> Self
Rotates the object around a point.
impl Convex for ConvexMesh
[src]
impl Convex for ConvexMesh
Auto Trait Implementations
impl Send for ConvexMesh
impl Send for ConvexMesh
impl Sync for ConvexMesh
impl Sync for ConvexMesh