pub struct PolyMesh { /* private fields */ }
Implementations§
Source§impl PolyMesh
impl PolyMesh
pub fn new( contour_set: &ContourSet, context: &mut Context, max_vertices_per_polygon: i32, ) -> Result<PolyMesh, ()>
pub fn vertices_len(&self) -> usize
pub fn vertex(&self, index: usize) -> PolyMeshVertex<'_>
pub fn vertices_iter(&self) -> impl Iterator<Item = PolyMeshVertex<'_>> + '_
pub fn polygons_len(&self) -> usize
pub fn polygon(&self, index: usize) -> PolyMeshPolygon<'_>
pub fn polygons_iter(&self) -> impl Iterator<Item = PolyMeshPolygon<'_>> + '_
pub fn max_vertices_per_polygon(&self) -> i32
pub fn min_bounds(&self) -> Vec3<f32>
pub fn max_bounds(&self) -> Vec3<f32>
pub fn cell_horizontal_size(&self) -> f32
pub fn cell_height(&self) -> f32
pub fn border_size(&self) -> i32
pub fn max_edge_error(&self) -> f32
Auto Trait Implementations§
impl Freeze for PolyMesh
impl RefUnwindSafe for PolyMesh
impl Send for PolyMesh
impl !Sync for PolyMesh
impl Unpin for PolyMesh
impl UnwindSafe for PolyMesh
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more