MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::SimpleVolumeMinMax Struct Reference
Inheritance diagram for meshlib::SimpleVolumeMinMax:

Public Member Functions

auto assign_from_another (_other:&meshlib::SimpleVolumeMinMax) -> &mut meshlib::SimpleVolumeMinMax
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::VoxelScalars
auto data_mut () -> &mut meshlib::VoxelScalars
void set_data (value:&meshlib::VoxelScalars)
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_simple_volume () const -> &meshlib::SimpleVolume
auto upcast_to_simple_volume_mut () -> &mut meshlib::SimpleVolume
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::SimpleVolumeMinMax >
static auto construct_from_another (_other:&meshlib::SimpleVolumeMinMax) -> meshlib::Owned< meshlib::SimpleVolumeMinMax >
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_simple_volume (object:&meshlib::SimpleVolume) -> &Self
static auto static_downcast_from_simple_volume_mut (object:&mut meshlib::SimpleVolume) -> &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::SimpleVolumeMinMax. Base classes: Direct: (non-virtual) MR::SimpleVolume MR::Box1f

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ center()

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

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

Calls MR_SimpleVolumeMinMax_center().

◆ construct_from_another()

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

Generated from constructor MR::SimpleVolumeMinMax::SimpleVolumeMinMax.

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

◆ corner()

auto meshlib::SimpleVolumeMinMax::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::SimpleVolumeMinMax::corner.

Calls MR_SimpleVolumeMinMax_corner().

◆ data()

auto meshlib::SimpleVolumeMinMax::data ( ) const -> &meshlib::VoxelScalars

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

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

◆ data_mut()

auto meshlib::SimpleVolumeMinMax::data_mut ( ) -> &mut meshlib::VoxelScalars

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

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

◆ diagonal()

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

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

Calls MR_SimpleVolumeMinMax_diagonal().

◆ dims()

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

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

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

◆ dims_mut()

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

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

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

◆ elements()

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

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

Calls MR_SimpleVolumeMinMax_Get_elements().

◆ expanded()

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

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

Calls MR_SimpleVolumeMinMax_expanded().

◆ from_min_and_size()

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

Generated from method MR::SimpleVolumeMinMax::fromMinAndSize.

Calls MR_SimpleVolumeMinMax_fromMinAndSize().

◆ get_box_closest_point_to()

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

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

Calls MR_SimpleVolumeMinMax_getBoxClosestPointTo().

◆ get_max_box_corner()

auto meshlib::SimpleVolumeMinMax::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::SimpleVolumeMinMax::getMaxBoxCorner.

Calls MR_SimpleVolumeMinMax_getMaxBoxCorner().

◆ get_min_box_corner()

auto meshlib::SimpleVolumeMinMax::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::SimpleVolumeMinMax::getMinBoxCorner.

Calls MR_SimpleVolumeMinMax_getMinBoxCorner().

◆ get_projection()

auto meshlib::SimpleVolumeMinMax::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::SimpleVolumeMinMax::getProjection.

Calls MR_SimpleVolumeMinMax_getProjection().

◆ heap_bytes()

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

Generated from method MR::SimpleVolumeMinMax::heapBytes.

Calls MR_SimpleVolumeMinMax_heapBytes().

◆ insignificantly_expanded()

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

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

Calls MR_SimpleVolumeMinMax_insignificantlyExpanded().

◆ intersect()

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

Generated from method MR::SimpleVolumeMinMax::intersect.

Calls MR_SimpleVolumeMinMax_intersect().

◆ intersection()

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

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

Calls MR_SimpleVolumeMinMax_intersection().

◆ intersects()

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

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

Calls MR_SimpleVolumeMinMax_intersects().

◆ max()

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

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

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

◆ max_mut()

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

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

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

◆ min()

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

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

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

◆ min_mut()

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

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

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_SimpleVolumeMinMax_DefaultConstruct().

◆ op_equal_mr_box1f()

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

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

Calls MR_equal_MR_SimpleVolumeMinMax_MR_Box1f().

◆ op_not_equal_mr_box1f()

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

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

Calls MR_not_equal_MR_SimpleVolumeMinMax_MR_Box1f().

◆ set_data()

void meshlib::SimpleVolumeMinMax::set_data ( value:&meshlib::VoxelScalars )

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

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

◆ set_dims()

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

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

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

◆ set_max()

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

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

Calls MR_SimpleVolumeMinMax_Set_max().

◆ set_min()

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

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

Calls MR_SimpleVolumeMinMax_Set_min().

◆ set_voxel_size()

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

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

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

◆ size()

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

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

Calls MR_SimpleVolumeMinMax_size().

◆ static_downcast_from_box1f()

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

Static downcast from the base class MR::Box1f.

Calls MR_SimpleVolumeMinMax_StaticDowncastFrom_MR_Box1f(). Undefined behavior if the object isn't actually a SimpleVolumeMinMax.

Note
This function is unsafe.

◆ static_downcast_from_box1f_mut()

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

Static downcast from the base class MR::Box1f.

Calls MR_SimpleVolumeMinMax_MutableStaticDowncastFrom_MR_Box1f(). Undefined behavior if the object isn't actually a SimpleVolumeMinMax.

Note
This function is unsafe.

◆ static_downcast_from_simple_volume()

auto meshlib::SimpleVolumeMinMax::static_downcast_from_simple_volume ( object:&meshlib::SimpleVolume ) -> &Self
static

Static downcast from the base class MR::SimpleVolume.

Calls MR_SimpleVolumeMinMax_StaticDowncastFrom_MR_SimpleVolume(). Undefined behavior if the object isn't actually a SimpleVolumeMinMax.

Note
This function is unsafe.

◆ static_downcast_from_simple_volume_mut()

auto meshlib::SimpleVolumeMinMax::static_downcast_from_simple_volume_mut ( object:&mut meshlib::SimpleVolume ) -> &mut Self
static

Static downcast from the base class MR::SimpleVolume.

Calls MR_SimpleVolumeMinMax_MutableStaticDowncastFrom_MR_SimpleVolume(). Undefined behavior if the object isn't actually a SimpleVolumeMinMax.

Note
This function is unsafe.

◆ upcast_to_box1f()

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

Upcasts to the base class MR::Box1f.

Calls MR_SimpleVolumeMinMax_UpcastTo_MR_Box1f().

◆ upcast_to_box1f_mut()

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

Upcasts to the base class MR::Box1f.

Calls MR_SimpleVolumeMinMax_MutableUpcastTo_MR_Box1f().

◆ upcast_to_simple_volume()

auto meshlib::SimpleVolumeMinMax::upcast_to_simple_volume ( ) const -> &meshlib::SimpleVolume

Upcasts to the base class MR::SimpleVolume.

Calls MR_SimpleVolumeMinMax_UpcastTo_MR_SimpleVolume().

◆ upcast_to_simple_volume_mut()

auto meshlib::SimpleVolumeMinMax::upcast_to_simple_volume_mut ( ) -> &mut meshlib::SimpleVolume

Upcasts to the base class MR::SimpleVolume.

Calls MR_SimpleVolumeMinMax_MutableUpcastTo_MR_SimpleVolume().

◆ valid()

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

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

Calls MR_SimpleVolumeMinMax_valid().

◆ volume()

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

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

Calls MR_SimpleVolumeMinMax_volume().

◆ voxel_size()

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

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

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

◆ voxel_size_mut()

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

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

Calls MR_SimpleVolumeMinMax_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: