pub struct Heightfield { /* private fields */ }
Implementations§
Source§impl Heightfield
impl Heightfield
pub fn new( context: &mut Context, min_bounds: Vec3<f32>, max_bounds: Vec3<f32>, cell_horizontal_size: f32, cell_height: f32, ) -> Result<Self, ()>
pub fn grid_width(&self) -> i32
pub fn grid_height(&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 spans_len(&self) -> usize
pub fn spans_iter( &self, ) -> impl Iterator<Item = Option<HeightfieldSpan<'_>>> + '_
pub fn span(&self, index: usize) -> Option<HeightfieldSpan<'_>>
pub fn span_by_grid( &self, grid_x: i32, grid_y: i32, ) -> Option<HeightfieldSpan<'_>>
pub fn rasterize_triangles( &mut self, context: &mut Context, vertices: &[Vec3<f32>], area_ids: &[u8], flag_merge_threshold: i32, ) -> Result<(), ()>
pub unsafe fn rasterize_indexed_triangles_u16_unchecked( &mut self, context: &mut Context, vertices: &[Vec3<f32>], triangles: &[Vec3<u16>], area_ids: &[u8], flag_merge_threshold: i32, ) -> Result<(), ()>
pub unsafe fn rasterize_indexed_triangles_i32_unchecked( &mut self, context: &mut Context, vertices: &[Vec3<f32>], triangles: &[Vec3<i32>], area_ids: &[u8], flag_merge_threshold: i32, ) -> Result<(), ()>
pub fn rasterize_indexed_triangles_u16( &mut self, context: &mut Context, vertices: &[Vec3<f32>], triangles: &[Vec3<u16>], area_ids: &[u8], flag_merge_threshold: i32, ) -> Result<(), ()>
pub fn rasterize_indexed_triangles_i32( &mut self, context: &mut Context, vertices: &[Vec3<f32>], triangles: &[Vec3<i32>], area_ids: &[u8], flag_merge_threshold: i32, ) -> Result<(), ()>
pub fn filter_low_hanging_walkable_obstacles( &mut self, context: &mut Context, walkable_climb: i32, )
pub fn filter_ledge_spans( &mut self, context: &mut Context, walkable_height: i32, walkable_climb: i32, )
pub fn filter_walkable_low_height_spans( &mut self, context: &mut Context, walkable_height: i32, )
Auto Trait Implementations§
impl Freeze for Heightfield
impl RefUnwindSafe for Heightfield
impl Send for Heightfield
impl !Sync for Heightfield
impl Unpin for Heightfield
impl UnwindSafe for Heightfield
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