MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::VdbVolume:

Public Member Functions

auto assign_from_another (_other:&meshlib::VdbVolume) -> &mut meshlib::VdbVolume
auto heap_bytes () const -> usize
auto valid () const -> bool
auto center () const -> f32
auto corner (c:&bool) const -> f32
auto size () const -> f32
auto diagonal () const -> f32
auto volume () const -> f32
auto get_box_closest_point_to (pt:&f32) const -> f32
auto intersects (b:&meshlib::Box1f) const -> bool
auto intersection (b:&meshlib::Box1f) const -> meshlib::Box1f
auto intersect (b:&meshlib::Box1f) -> &mut meshlib::Box1f
auto get_projection (pt:&f32) const -> f32
auto expanded (expansion:&f32) const -> meshlib::Box1f
auto insignificantly_expanded () const -> meshlib::Box1f
auto op_equal_mr_box1f (a:&meshlib::Box1f) const -> bool
auto op_not_equal_mr_box1f (a:&meshlib::Box1f) const -> bool
auto data () const -> &meshlib::FloatGrid
auto data_mut () -> &mut meshlib::FloatGrid
void set_data (value:&meshlib::FloatGrid)
auto dims () const -> &meshlib::Vector3i
auto dims_mut () -> &mut meshlib::Vector3i
void set_dims (value:meshlib::Vector3i)
auto voxel_size () const -> &meshlib::Vector3f
auto voxel_size_mut () -> &mut meshlib::Vector3f
void set_voxel_size (value:meshlib::Vector3f)
auto min () const -> &f32
auto min_mut () -> &mut f32
void set_min (value:f32)
auto max () const -> &f32
auto max_mut () -> &mut f32
void set_max (value:f32)
auto upcast_to_voxels_volume_mr_float_grid () const -> &meshlib::VoxelsVolume_MR_FloatGrid
auto upcast_to_voxels_volume_mr_float_grid_mut () -> &mut meshlib::VoxelsVolume_MR_FloatGrid
auto upcast_to_box1f () const -> &meshlib::Box1f
auto upcast_to_box1f_mut () -> &mut meshlib::Box1f

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::VdbVolume >
static auto construct_from_another (_other:&meshlib::VdbVolume) -> meshlib::Owned< meshlib::VdbVolume >
static auto from_min_and_size (min:&f32, size:&f32) -> meshlib::Box1f
static auto get_min_box_corner (n:&f32) -> bool
static auto get_max_box_corner (n:&f32) -> bool
static auto elements () -> *const core::ffi::c_int
static auto static_downcast_from_voxels_volume_mr_float_grid (object:&meshlib::VoxelsVolume_MR_FloatGrid) -> &Self
static auto static_downcast_from_voxels_volume_mr_float_grid_mut (object:&mut meshlib::VoxelsVolume_MR_FloatGrid) -> &mut Self
static auto static_downcast_from_box1f (object:&meshlib::Box1f) -> &Self
static auto static_downcast_from_box1f_mut (object:&mut meshlib::Box1f) -> &mut Self
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

represents a box in 3D space subdivided on voxels stored in T; and stores minimum and maximum values among all valid voxels Generated from class MR::VdbVolume. Base classes: Direct: (non-virtual) MR::VoxelsVolume<MR::FloatGrid> MR::Box1f

Generated from class MR::VdbVolume. Heap-allocated instances are held in Owned<VdbVolume>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::VdbVolume::assign_from_another ( _other:&meshlib::VdbVolume ) -> &mut meshlib::VdbVolume

Generated from method MR::VdbVolume::operator=.

Calls MR_VdbVolume_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ center()

auto meshlib::VdbVolume::center ( ) const -> f32

computes center of the box Generated from method MR::VdbVolume::center.

Calls MR_VdbVolume_center().

◆ construct_from_another()

auto meshlib::VdbVolume::construct_from_another ( _other:&meshlib::VdbVolume ) -> meshlib::Owned< meshlib::VdbVolume >
static

Generated from constructor MR::VdbVolume::VdbVolume.

Calls MR_VdbVolume_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ corner()

auto meshlib::VdbVolume::corner ( c:& bool ) const -> f32

returns the corner of this box as specified by given bool-vector: 0 element in (c) means take min's coordinate, 1 element in (c) means take max's coordinate Generated from method MR::VdbVolume::corner.

Calls MR_VdbVolume_corner().

◆ data()

auto meshlib::VdbVolume::data ( ) const -> &meshlib::FloatGrid

Returns a pointer to a member variable of class MR::VdbVolume named data.

Calls MR_VdbVolume_Get_data(). The reference to this object might be preserved as the return value.

◆ data_mut()

auto meshlib::VdbVolume::data_mut ( ) -> &mut meshlib::FloatGrid

Returns a mutable pointer to a member variable of class MR::VdbVolume named data.

Calls MR_VdbVolume_GetMutable_data(). The reference to this object might be preserved as the return value.

◆ diagonal()

auto meshlib::VdbVolume::diagonal ( ) const -> f32

computes length from min to max Generated from method MR::VdbVolume::diagonal.

Calls MR_VdbVolume_diagonal().

◆ dims()

auto meshlib::VdbVolume::dims ( ) const -> &meshlib::Vector3i

Returns a pointer to a member variable of class MR::VdbVolume named dims.

Calls MR_VdbVolume_Get_dims(). The reference to this object might be preserved as the return value.

◆ dims_mut()

auto meshlib::VdbVolume::dims_mut ( ) -> &mut meshlib::Vector3i

Returns a mutable pointer to a member variable of class MR::VdbVolume named dims.

Calls MR_VdbVolume_GetMutable_dims(). The reference to this object might be preserved as the return value.

◆ elements()

auto meshlib::VdbVolume::elements ( ) -> *const core::ffi::c_int
static

Returns a pointer to a member variable of class MR::VdbVolume named elements.

Calls MR_VdbVolume_Get_elements().

◆ expanded()

auto meshlib::VdbVolume::expanded ( expansion:& f32) const -> meshlib::Box1f

decreases min and increased max on given value Generated from method MR::VdbVolume::expanded.

Calls MR_VdbVolume_expanded().

◆ from_min_and_size()

auto meshlib::VdbVolume::from_min_and_size ( min:& f32,
size:& f32 ) -> meshlib::Box1f
static

Generated from method MR::VdbVolume::fromMinAndSize.

Calls MR_VdbVolume_fromMinAndSize().

◆ get_box_closest_point_to()

auto meshlib::VdbVolume::get_box_closest_point_to ( pt:& f32) const -> f32

returns closest point in the box to given point Generated from method MR::VdbVolume::getBoxClosestPointTo.

Calls MR_VdbVolume_getBoxClosestPointTo().

◆ get_max_box_corner()

auto meshlib::VdbVolume::get_max_box_corner ( n:& f32) -> bool
static

considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is maximal Generated from method MR::VdbVolume::getMaxBoxCorner.

Calls MR_VdbVolume_getMaxBoxCorner().

◆ get_min_box_corner()

auto meshlib::VdbVolume::get_min_box_corner ( n:& f32) -> bool
static

considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is minimal Generated from method MR::VdbVolume::getMinBoxCorner.

Calls MR_VdbVolume_getMinBoxCorner().

◆ get_projection()

auto meshlib::VdbVolume::get_projection ( pt:& f32) const -> f32

returns the closest point on the box to the given point for points outside the box this is equivalent to getBoxClosestPointTo Generated from method MR::VdbVolume::getProjection.

Calls MR_VdbVolume_getProjection().

◆ heap_bytes()

auto meshlib::VdbVolume::heap_bytes ( ) const -> usize

Generated from method MR::VdbVolume::heapBytes.

Calls MR_VdbVolume_heapBytes().

◆ insignificantly_expanded()

auto meshlib::VdbVolume::insignificantly_expanded ( ) const -> meshlib::Box1f

decreases min and increases max to their closest representable value Generated from method MR::VdbVolume::insignificantlyExpanded.

Calls MR_VdbVolume_insignificantlyExpanded().

◆ intersect()

auto meshlib::VdbVolume::intersect ( b:&meshlib::Box1f ) -> &mut meshlib::Box1f

Generated from method MR::VdbVolume::intersect.

Calls MR_VdbVolume_intersect().

◆ intersection()

auto meshlib::VdbVolume::intersection ( b:&meshlib::Box1f ) const -> meshlib::Box1f

computes intersection between this and other box Generated from method MR::VdbVolume::intersection.

Calls MR_VdbVolume_intersection().

◆ intersects()

auto meshlib::VdbVolume::intersects ( b:&meshlib::Box1f ) const -> bool

checks whether this box intersects or touches given box Generated from method MR::VdbVolume::intersects.

Calls MR_VdbVolume_intersects().

◆ max()

auto meshlib::VdbVolume::max ( ) const -> &f32

Returns a pointer to a member variable of class MR::VdbVolume named max.

Calls MR_VdbVolume_Get_max(). The reference to this object might be preserved as the return value.

◆ max_mut()

auto meshlib::VdbVolume::max_mut ( ) -> &mut f32

Returns a mutable pointer to a member variable of class MR::VdbVolume named max.

Calls MR_VdbVolume_GetMutable_max(). The reference to this object might be preserved as the return value.

◆ min()

auto meshlib::VdbVolume::min ( ) const -> &f32

Returns a pointer to a member variable of class MR::VdbVolume named min.

Calls MR_VdbVolume_Get_min(). The reference to this object might be preserved as the return value.

◆ min_mut()

auto meshlib::VdbVolume::min_mut ( ) -> &mut f32

Returns a mutable pointer to a member variable of class MR::VdbVolume named min.

Calls MR_VdbVolume_GetMutable_min(). The reference to this object might be preserved as the return value.

◆ new()

auto meshlib::VdbVolume::new ( ) -> meshlib::Owned< meshlib::VdbVolume >
static

Constructs an empty (default-constructed) instance.

Calls MR_VdbVolume_DefaultConstruct().

◆ op_equal_mr_box1f()

auto meshlib::VdbVolume::op_equal_mr_box1f ( a:&meshlib::Box1f ) const -> bool

Generated from method MR::VdbVolume::operator==.

Calls MR_equal_MR_VdbVolume_MR_Box1f().

◆ op_not_equal_mr_box1f()

auto meshlib::VdbVolume::op_not_equal_mr_box1f ( a:&meshlib::Box1f ) const -> bool

Generated from method MR::VdbVolume::operator!=.

Calls MR_not_equal_MR_VdbVolume_MR_Box1f().

◆ set_data()

void meshlib::VdbVolume::set_data ( value:&meshlib::FloatGrid )

Modifies a member variable of class MR::VdbVolume named data.

Calls MR_VdbVolume_Set_data(). The reference to the parameter value might be preserved in this object in element data.

◆ set_dims()

void meshlib::VdbVolume::set_dims ( value:meshlib::Vector3i )

Modifies a member variable of class MR::VdbVolume named dims.

Calls MR_VdbVolume_Set_dims(). The reference to the parameter value might be preserved in this object in element dims.

◆ set_max()

void meshlib::VdbVolume::set_max ( value:f32 )

Modifies a member variable of class MR::VdbVolume named max.

Calls MR_VdbVolume_Set_max().

◆ set_min()

void meshlib::VdbVolume::set_min ( value:f32 )

Modifies a member variable of class MR::VdbVolume named min.

Calls MR_VdbVolume_Set_min().

◆ set_voxel_size()

void meshlib::VdbVolume::set_voxel_size ( value:meshlib::Vector3f )

Modifies a member variable of class MR::VdbVolume named voxelSize.

Calls MR_VdbVolume_Set_voxelSize(). The reference to the parameter value might be preserved in this object in element voxelSize.

◆ size()

auto meshlib::VdbVolume::size ( ) const -> f32

computes size of the box in all dimensions Generated from method MR::VdbVolume::size.

Calls MR_VdbVolume_size().

◆ static_downcast_from_box1f()

auto meshlib::VdbVolume::static_downcast_from_box1f ( object:&meshlib::Box1f ) -> &Self
static

Static downcast from the base class MR::Box1f.

Calls MR_VdbVolume_StaticDowncastFrom_MR_Box1f(). Undefined behavior if the object isn't actually a VdbVolume.

Note
This function is unsafe.

◆ static_downcast_from_box1f_mut()

auto meshlib::VdbVolume::static_downcast_from_box1f_mut ( object:&mut meshlib::Box1f ) -> &mut Self
static

Static downcast from the base class MR::Box1f.

Calls MR_VdbVolume_MutableStaticDowncastFrom_MR_Box1f(). Undefined behavior if the object isn't actually a VdbVolume.

Note
This function is unsafe.

◆ static_downcast_from_voxels_volume_mr_float_grid()

auto meshlib::VdbVolume::static_downcast_from_voxels_volume_mr_float_grid ( object:&meshlib::VoxelsVolume_MR_FloatGrid ) -> &Self
static

Static downcast from the base class MR::VoxelsVolume<MR::FloatGrid>.

Calls MR_VdbVolume_StaticDowncastFrom_MR_VoxelsVolume_MR_FloatGrid(). Undefined behavior if the object isn't actually a VdbVolume.

Note
This function is unsafe.

◆ static_downcast_from_voxels_volume_mr_float_grid_mut()

auto meshlib::VdbVolume::static_downcast_from_voxels_volume_mr_float_grid_mut ( object:&mut meshlib::VoxelsVolume_MR_FloatGrid ) -> &mut Self
static

Static downcast from the base class MR::VoxelsVolume<MR::FloatGrid>.

Calls MR_VdbVolume_MutableStaticDowncastFrom_MR_VoxelsVolume_MR_FloatGrid(). Undefined behavior if the object isn't actually a VdbVolume.

Note
This function is unsafe.

◆ upcast_to_box1f()

auto meshlib::VdbVolume::upcast_to_box1f ( ) const -> &meshlib::Box1f

Upcasts to the base class MR::Box1f.

Calls MR_VdbVolume_UpcastTo_MR_Box1f().

◆ upcast_to_box1f_mut()

auto meshlib::VdbVolume::upcast_to_box1f_mut ( ) -> &mut meshlib::Box1f

Upcasts to the base class MR::Box1f.

Calls MR_VdbVolume_MutableUpcastTo_MR_Box1f().

◆ upcast_to_voxels_volume_mr_float_grid()

auto meshlib::VdbVolume::upcast_to_voxels_volume_mr_float_grid ( ) const -> &meshlib::VoxelsVolume_MR_FloatGrid

Upcasts to the base class MR::VoxelsVolume<MR::FloatGrid>.

Calls MR_VdbVolume_UpcastTo_MR_VoxelsVolume_MR_FloatGrid().

◆ upcast_to_voxels_volume_mr_float_grid_mut()

auto meshlib::VdbVolume::upcast_to_voxels_volume_mr_float_grid_mut ( ) -> &mut meshlib::VoxelsVolume_MR_FloatGrid

Upcasts to the base class MR::VoxelsVolume<MR::FloatGrid>.

Calls MR_VdbVolume_MutableUpcastTo_MR_VoxelsVolume_MR_FloatGrid().

◆ valid()

auto meshlib::VdbVolume::valid ( ) const -> bool

true if the box contains at least one point Generated from method MR::VdbVolume::valid.

Calls MR_VdbVolume_valid().

◆ volume()

auto meshlib::VdbVolume::volume ( ) const -> f32

computes the volume of this box Generated from method MR::VdbVolume::volume.

Calls MR_VdbVolume_volume().

◆ voxel_size()

auto meshlib::VdbVolume::voxel_size ( ) const -> &meshlib::Vector3f

Returns a pointer to a member variable of class MR::VdbVolume named voxelSize.

Calls MR_VdbVolume_Get_voxelSize(). The reference to this object might be preserved as the return value.

◆ voxel_size_mut()

auto meshlib::VdbVolume::voxel_size_mut ( ) -> &mut meshlib::Vector3f

Returns a mutable pointer to a member variable of class MR::VdbVolume named voxelSize.

Calls MR_VdbVolume_GetMutable_voxelSize(). The reference to this object might be preserved as the return value.


The documentation for this struct was generated from the following file: