[−][src]Struct mesh_generation::PolyMesh
Fields
num_vertices: u32
vertices: Vec<Vector3<f64>>
vertices_array: Vec<u32>
st: Vec<Vector2<f64>>
normals: Vec<Vector3<f64>>
num_faces: u32
face_array: Vec<u32>
Implementations
impl PolyMesh
[src]
pub fn new(
subdivision_width: Option<u32>,
subdivision_height: Option<u32>,
height: Option<u32>,
width: Option<u32>
) -> Self
[src]
subdivision_width: Option<u32>,
subdivision_height: Option<u32>,
height: Option<u32>,
width: Option<u32>
) -> Self
Creates new mesh with subdivision_width
and subdivision_height
subdivisions width wise and height wise respectively.
Height and width set the scale of the mesh.
pub fn export_to_obj(&self, filename: &str)
[src]
Exports mesh to obj format
pub fn calculate_normals(&mut self)
[src]
Calculates normals using geometric normals
pub fn displace_with_noise_map(
&mut self,
noise_map: Vec<f64>,
image_width: u32,
image_height: u32
)
[src]
&mut self,
noise_map: Vec<f64>,
image_width: u32,
image_height: u32
)
Displaces mesh according to noise map provided.
Auto Trait Implementations
impl RefUnwindSafe for PolyMesh
impl Send for PolyMesh
impl Sync for PolyMesh
impl Unpin for PolyMesh
impl UnwindSafe for PolyMesh
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,
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> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
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.
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>,