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

Public Member Functions

auto assign_from_another (_other:&meshlib::MeshFromVoxelsPostProcessingParams) -> &mut meshlib::MeshFromVoxelsPostProcessingParams
auto voxel_size () const -> &f32
auto voxel_size_mut () -> &mut f32
void set_voxel_size (value:f32)
auto reduce_angle_num_iters () const -> &core::ffi::c_int
auto reduce_angle_num_iters_mut () -> &mut core::ffi::c_int
void set_reduce_angle_num_iters (value:core::ffi::c_int)
auto decimate () const -> &bool
auto decimate_mut () -> &mut bool
void set_decimate (value:bool)
auto tiny_edge_length () const -> &f32
auto tiny_edge_length_mut () -> &mut f32
void set_tiny_edge_length (value:f32)
auto sharp_edges () const -> *const *mut meshlib::ffi::MR_UndirectedEdgeBitSet
auto sharp_edges_mut () -> *mut *mut meshlib::ffi::MR_UndirectedEdgeBitSet
void set_sharp_edges (value:Option<&mut meshlib::UndirectedEdgeBitSet >)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::MeshFromVoxelsPostProcessingParams >
static auto construct_from (voxelSize:f32, reduceAngleNumIters:core::ffi::c_int, decimate:bool, tinyEdgeLength:f32, sharpEdges:Option<&mut meshlib::UndirectedEdgeBitSet >) -> meshlib::Owned< meshlib::MeshFromVoxelsPostProcessingParams >
static auto construct_from_another (_other:&meshlib::MeshFromVoxelsPostProcessingParams) -> meshlib::Owned< meshlib::MeshFromVoxelsPostProcessingParams >
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

Generated from class MR::MeshFromVoxelsPostProcessingParams.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::MeshFromVoxelsPostProcessingParams::construct_from ( voxelSize:f32 ,
reduceAngleNumIters:core::ffi::c_int ,
decimate:bool ,
tinyEdgeLength:f32 ,
sharpEdges:Option<&mut meshlib::UndirectedEdgeBitSet >  ) -> meshlib::Owned< meshlib::MeshFromVoxelsPostProcessingParams >
static

Constructs MR::MeshFromVoxelsPostProcessingParams elementwise.

Calls MR_MeshFromVoxelsPostProcessingParams_ConstructFrom(). The reference to the parameter sharpEdges might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::MeshFromVoxelsPostProcessingParams::MeshFromVoxelsPostProcessingParams.

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

◆ decimate()

auto meshlib::MeshFromVoxelsPostProcessingParams::decimate ( ) const -> &bool

whether to decimate resulting mesh Returns a pointer to a member variable of class MR::MeshFromVoxelsPostProcessingParams named decimate.

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

◆ decimate_mut()

auto meshlib::MeshFromVoxelsPostProcessingParams::decimate_mut ( ) -> &mut bool

whether to decimate resulting mesh Returns a mutable pointer to a member variable of class MR::MeshFromVoxelsPostProcessingParams named decimate.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_MeshFromVoxelsPostProcessingParams_DefaultConstruct().

◆ reduce_angle_num_iters()

auto meshlib::MeshFromVoxelsPostProcessingParams::reduce_angle_num_iters ( ) const -> &core::ffi::c_int

the number of iterations to minimize summed deviation of triangle-triangle angles from plane; this mode highlights sharp edges; if decimation is on, this mode is performed before and after decimation and further reduces the number of triangles Returns a pointer to a member variable of class MR::MeshFromVoxelsPostProcessingParams named reduceAngleNumIters.

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

◆ reduce_angle_num_iters_mut()

auto meshlib::MeshFromVoxelsPostProcessingParams::reduce_angle_num_iters_mut ( ) -> &mut core::ffi::c_int

the number of iterations to minimize summed deviation of triangle-triangle angles from plane; this mode highlights sharp edges; if decimation is on, this mode is performed before and after decimation and further reduces the number of triangles Returns a mutable pointer to a member variable of class MR::MeshFromVoxelsPostProcessingParams named reduceAngleNumIters.

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

◆ set_decimate()

void meshlib::MeshFromVoxelsPostProcessingParams::set_decimate ( value:bool )

whether to decimate resulting mesh Modifies a member variable of class MR::MeshFromVoxelsPostProcessingParams named decimate.

Calls MR_MeshFromVoxelsPostProcessingParams_Set_decimate().

◆ set_reduce_angle_num_iters()

void meshlib::MeshFromVoxelsPostProcessingParams::set_reduce_angle_num_iters ( value:core::ffi::c_int )

the number of iterations to minimize summed deviation of triangle-triangle angles from plane; this mode highlights sharp edges; if decimation is on, this mode is performed before and after decimation and further reduces the number of triangles Modifies a member variable of class MR::MeshFromVoxelsPostProcessingParams named reduceAngleNumIters.

Calls MR_MeshFromVoxelsPostProcessingParams_Set_reduceAngleNumIters().

◆ set_sharp_edges()

void meshlib::MeshFromVoxelsPostProcessingParams::set_sharp_edges ( value:Option<&mut meshlib::UndirectedEdgeBitSet > )

sharp edges that are maintained during post-processing Modifies a member variable of class MR::MeshFromVoxelsPostProcessingParams named sharpEdges.

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

◆ set_tiny_edge_length()

void meshlib::MeshFromVoxelsPostProcessingParams::set_tiny_edge_length ( value:f32 )

only if decimate = true: edges not longer than this value will be collapsed even if it results in appearance of a triangle with high aspect ratio Modifies a member variable of class MR::MeshFromVoxelsPostProcessingParams named tinyEdgeLength.

Calls MR_MeshFromVoxelsPostProcessingParams_Set_tinyEdgeLength().

◆ set_voxel_size()

void meshlib::MeshFromVoxelsPostProcessingParams::set_voxel_size ( value:f32 )

The size of voxel that was used for mesh creation, must be set Modifies a member variable of class MR::MeshFromVoxelsPostProcessingParams named voxelSize.

Calls MR_MeshFromVoxelsPostProcessingParams_Set_voxelSize().

◆ sharp_edges()

auto meshlib::MeshFromVoxelsPostProcessingParams::sharp_edges ( ) const -> *const *mut meshlib::ffi::MR_UndirectedEdgeBitSet

sharp edges that are maintained during post-processing Returns a pointer to a member variable of class MR::MeshFromVoxelsPostProcessingParams named sharpEdges.

Calls MR_MeshFromVoxelsPostProcessingParams_Get_sharpEdges(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ sharp_edges_mut()

auto meshlib::MeshFromVoxelsPostProcessingParams::sharp_edges_mut ( ) -> *mut *mut meshlib::ffi::MR_UndirectedEdgeBitSet

sharp edges that are maintained during post-processing Returns a mutable pointer to a member variable of class MR::MeshFromVoxelsPostProcessingParams named sharpEdges.

Calls MR_MeshFromVoxelsPostProcessingParams_GetMutable_sharpEdges(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ tiny_edge_length()

auto meshlib::MeshFromVoxelsPostProcessingParams::tiny_edge_length ( ) const -> &f32

only if decimate = true: edges not longer than this value will be collapsed even if it results in appearance of a triangle with high aspect ratio Returns a pointer to a member variable of class MR::MeshFromVoxelsPostProcessingParams named tinyEdgeLength.

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

◆ tiny_edge_length_mut()

auto meshlib::MeshFromVoxelsPostProcessingParams::tiny_edge_length_mut ( ) -> &mut f32

only if decimate = true: edges not longer than this value will be collapsed even if it results in appearance of a triangle with high aspect ratio Returns a mutable pointer to a member variable of class MR::MeshFromVoxelsPostProcessingParams named tinyEdgeLength.

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

◆ voxel_size()

auto meshlib::MeshFromVoxelsPostProcessingParams::voxel_size ( ) const -> &f32

The size of voxel that was used for mesh creation, must be set Returns a pointer to a member variable of class MR::MeshFromVoxelsPostProcessingParams named voxelSize.

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

◆ voxel_size_mut()

auto meshlib::MeshFromVoxelsPostProcessingParams::voxel_size_mut ( ) -> &mut f32

The size of voxel that was used for mesh creation, must be set Returns a mutable pointer to a member variable of class MR::MeshFromVoxelsPostProcessingParams named voxelSize.

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