Struct michelangelo::Mesh [−][src]
Fields
vertices: CVec<Vertex>
indices: CVec<u16>
Methods
impl Mesh
[src]
impl Mesh
impl Mesh
[src]
impl Mesh
pub fn from_area(area: &Area) -> Mesh
[src]
pub fn from_area(area: &Area) -> Mesh
pub fn from_path_as_band(path: &LinePath, width: N, z: N) -> Mesh
[src]
pub fn from_path_as_band(path: &LinePath, width: N, z: N) -> Mesh
pub fn from_path_as_band_asymmetric(
path: &LinePath,
width_left: N,
width_right: N,
z: N
) -> Mesh
[src]
pub fn from_path_as_band_asymmetric(
path: &LinePath,
width_left: N,
width_right: N,
z: N
) -> Mesh
Trait Implementations
impl Compact for Mesh
[src]
impl Compact for Mesh
fn is_still_compact(&self) -> bool
[src]
fn is_still_compact(&self) -> bool
Is the object's dynamic part stored compactly?
fn dynamic_size_bytes(&self) -> usize
[src]
fn dynamic_size_bytes(&self) -> usize
Size of the dynamic part in bytes
unsafe fn compact(source: *mut Self, dest: *mut Self, new_dynamic_part: *mut u8)
[src]
unsafe fn compact(source: *mut Self, dest: *mut Self, new_dynamic_part: *mut u8)
Copy the static part of source
to dest
and compactly store the dynamic part of source
as the new dynamic part of dest
at new_dynamic_part
. This semantically moves source into dest. Read more
unsafe fn decompact(source: *const Self) -> Self
[src]
unsafe fn decompact(source: *const Self) -> Self
Creates a clone of self with the dynamic part guaranteed to be stored freely. Read more
fn total_size_bytes(&self) -> usize
[src]
fn total_size_bytes(&self) -> usize
Total size of the object (static part + dynamic part)
unsafe fn behind(ptr: *mut Self) -> *mut u8
[src]
unsafe fn behind(ptr: *mut Self) -> *mut u8
Get a pointer to behind the static part of self
(commonly used place for the dynamic part)
unsafe fn compact_behind(source: *mut Self, dest: *mut Self)
[src]
unsafe fn compact_behind(source: *mut Self, dest: *mut Self)
Like compact
with new_dynamic_part
set to dest.behind()
impl Debug for Mesh
[src]
impl Debug for Mesh
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Mesh
[src]
impl Clone for Mesh
fn clone(&self) -> Mesh
[src]
fn clone(&self) -> Mesh
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)
Performs copy-assignment from source
. Read more
impl Add for Mesh
[src]
impl Add for Mesh
type Output = Mesh
The resulting type after applying the +
operator.
fn add(self, rhs: Mesh) -> Mesh
[src]
fn add(self, rhs: Mesh) -> Mesh
Performs the +
operation.
impl AddAssign for Mesh
[src]
impl AddAssign for Mesh
fn add_assign(&mut self, rhs: Mesh)
[src]
fn add_assign(&mut self, rhs: Mesh)
Performs the +=
operation.
impl Sum for Mesh
[src]
impl Sum for Mesh
fn sum<I: Iterator<Item = Mesh>>(iter: I) -> Mesh
[src]
fn sum<I: Iterator<Item = Mesh>>(iter: I) -> Mesh
Method which takes an iterator and generates Self
from the elements by "summing up" the items. Read more
impl<'a> AddAssign<&'a Mesh> for Mesh
[src]
impl<'a> AddAssign<&'a Mesh> for Mesh
fn add_assign(&mut self, rhs: &'a Mesh)
[src]
fn add_assign(&mut self, rhs: &'a Mesh)
Performs the +=
operation.
impl<'a> Sum<&'a Mesh> for Mesh
[src]
impl<'a> Sum<&'a Mesh> for Mesh
fn sum<I: Iterator<Item = &'a Mesh>>(iter: I) -> Mesh
[src]
fn sum<I: Iterator<Item = &'a Mesh>>(iter: I) -> Mesh
Method which takes an iterator and generates Self
from the elements by "summing up" the items. Read more
impl GeometryBuilder<FillVertex> for Mesh
[src]
impl GeometryBuilder<FillVertex> for Mesh
fn begin_geometry(&mut self)
[src]
fn begin_geometry(&mut self)
Called at the beginning of a generation. Read more
fn end_geometry(&mut self) -> Count
[src]
fn end_geometry(&mut self) -> Count
Called at the end of a generation. Returns the number of vertices and indices added since the last time begin_geometry was called. Read more
fn abort_geometry(&mut self)
[src]
fn abort_geometry(&mut self)
abort_geometry is called instead of end_geometry if an error occured while producing the geometry and we won't be able to finish. Read more
fn add_vertex(&mut self, input: FillVertex) -> VertexId
[src]
fn add_vertex(&mut self, input: FillVertex) -> VertexId
Inserts a vertex, providing its position, and optionally a normal. Retuns a vertex id that is only valid between begin_geometry and end_geometry. Read more
fn add_triangle(&mut self, a: VertexId, b: VertexId, c: VertexId)
[src]
fn add_triangle(&mut self, a: VertexId, b: VertexId, c: VertexId)
Insert a triangle made of vertices that were added after the last call to begin_geometry. Read more