Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/renderer/geometry/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ impl Mesh {
pub fn colors_mut(&mut self) -> &mut Option<VertexBuffer<Vec4>> {
&mut self.base_mesh.colors
}

///
/// Used for editing the axis-aligned bounding box.
/// Note: Changing this will possibly hide the mesh due to frustum culling.
///
pub fn aabb_mut(&mut self) -> &mut AxisAlignedBoundingBox {
&mut self.aabb
}
}

impl<'a> IntoIterator for &'a Mesh {
Expand Down
Loading