pub struct CsgLeafNode {
pub p_impl: Arc<ManifoldImpl>,
pub transform: Mat3x4,
}Fields§
§p_impl: Arc<ManifoldImpl>§transform: Mat3x4Implementations§
Source§impl CsgLeafNode
impl CsgLeafNode
Sourcepub fn new(mesh: ManifoldImpl) -> Self
pub fn new(mesh: ManifoldImpl) -> Self
Create a leaf from a mesh with identity transform.
Sourcepub fn with_transform(mesh: ManifoldImpl, transform: Mat3x4) -> Self
pub fn with_transform(mesh: ManifoldImpl, transform: Mat3x4) -> Self
Create a leaf from a mesh with a specific transform.
Sourcepub fn get_impl(&self) -> ManifoldImpl
pub fn get_impl(&self) -> ManifoldImpl
Get the mesh, applying the lazy transform if needed. Port of C++ CsgLeafNode::GetImpl()
Sourcepub fn apply_transform(&self, m: Mat3x4) -> Self
pub fn apply_transform(&self, m: Mat3x4) -> Self
Return a new leaf with composed transform. Port of C++ CsgLeafNode::Transform()
Sourcepub fn get_bounding_box(&self) -> BBox
pub fn get_bounding_box(&self) -> BBox
Get bounding box without materializing the full mesh. Uses Arvo’s algorithm for AABB transform. Port of C++ CsgLeafNode::GetBoundingBox()
Trait Implementations§
Source§impl Clone for CsgLeafNode
impl Clone for CsgLeafNode
Source§fn clone(&self) -> CsgLeafNode
fn clone(&self) -> CsgLeafNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CsgLeafNode
impl RefUnwindSafe for CsgLeafNode
impl Send for CsgLeafNode
impl Sync for CsgLeafNode
impl Unpin for CsgLeafNode
impl UnsafeUnpin for CsgLeafNode
impl UnwindSafe for CsgLeafNode
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