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

Public Member Functions

auto assign_from_another (_other:&meshlib::DoubleOffsetSettings) -> &mut meshlib::DoubleOffsetSettings
auto voxel_size () const -> &f32
auto voxel_size_mut () -> &mut f32
void set_voxel_size (value:f32)
auto offset_a () const -> &f32
auto offset_a_mut () -> &mut f32
void set_offset_a (value:f32)
auto offset_b () const -> &f32
auto offset_b_mut () -> &mut f32
void set_offset_b (value:f32)
auto adaptivity () const -> &f32
auto adaptivity_mut () -> &mut f32
void set_adaptivity (value:f32)
auto fwn () const -> &meshlib::std_shared_ptr_MR_IFastWindingNumber
auto fwn_mut () -> &mut meshlib::std_shared_ptr_MR_IFastWindingNumber
void set_fwn (value:&meshlib::std_shared_ptr_MR_IFastWindingNumber)
auto winding_number_threshold () const -> &f32
auto winding_number_threshold_mut () -> &mut f32
void set_winding_number_threshold (value:f32)
auto winding_number_beta () const -> &f32
auto winding_number_beta_mut () -> &mut f32
void set_winding_number_beta (value:f32)
auto progress () const -> &meshlib::std_function_bool_from_float
auto progress_mut () -> &mut meshlib::std_function_bool_from_float
void set_progress (value:&meshlib::std_function_bool_from_float)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::DoubleOffsetSettings >
static auto construct_from (voxelSize:f32, offsetA:f32, offsetB:f32, adaptivity:f32, fwn:&meshlib::std_shared_ptr_MR_IFastWindingNumber, windingNumberThreshold:f32, windingNumberBeta:f32, progress:&meshlib::std_function_bool_from_float) -> meshlib::Owned< meshlib::DoubleOffsetSettings >
static auto construct_from_another (_other:&meshlib::DoubleOffsetSettings) -> meshlib::Owned< meshlib::DoubleOffsetSettings >
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::DoubleOffsetSettings.

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

Member Function Documentation

◆ adaptivity()

auto meshlib::DoubleOffsetSettings::adaptivity ( ) const -> &f32

in [0; 1] - ratio of combining small triangles into bigger ones (curvature can be lost on high values) Returns a pointer to a member variable of class MR::DoubleOffsetSettings named adaptivity.

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

◆ adaptivity_mut()

auto meshlib::DoubleOffsetSettings::adaptivity_mut ( ) -> &mut f32

in [0; 1] - ratio of combining small triangles into bigger ones (curvature can be lost on high values) Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named adaptivity.

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

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::DoubleOffsetSettings::construct_from ( voxelSize:f32 ,
offsetA:f32 ,
offsetB:f32 ,
adaptivity:f32 ,
fwn:&meshlib::std_shared_ptr_MR_IFastWindingNumber ,
windingNumberThreshold:f32 ,
windingNumberBeta:f32 ,
progress:&meshlib::std_function_bool_from_float  ) -> meshlib::Owned< meshlib::DoubleOffsetSettings >
static

Constructs MR::DoubleOffsetSettings elementwise.

Calls MR_DoubleOffsetSettings_ConstructFrom(). The reference to the parameter fwn might be preserved in the constructed object. The reference to the parameter progress might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::DoubleOffsetSettings::DoubleOffsetSettings.

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

◆ fwn()

auto meshlib::DoubleOffsetSettings::fwn ( ) const -> &meshlib::std_shared_ptr_MR_IFastWindingNumber

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used Returns a pointer to a member variable of class MR::DoubleOffsetSettings named fwn.

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

◆ fwn_mut()

auto meshlib::DoubleOffsetSettings::fwn_mut ( ) -> &mut meshlib::std_shared_ptr_MR_IFastWindingNumber

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named fwn.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_DoubleOffsetSettings_DefaultConstruct().

◆ offset_a()

auto meshlib::DoubleOffsetSettings::offset_a ( ) const -> &f32

the amount of first offset Returns a pointer to a member variable of class MR::DoubleOffsetSettings named offsetA.

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

◆ offset_a_mut()

auto meshlib::DoubleOffsetSettings::offset_a_mut ( ) -> &mut f32

the amount of first offset Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named offsetA.

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

◆ offset_b()

auto meshlib::DoubleOffsetSettings::offset_b ( ) const -> &f32

the amount of second offset Returns a pointer to a member variable of class MR::DoubleOffsetSettings named offsetB.

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

◆ offset_b_mut()

auto meshlib::DoubleOffsetSettings::offset_b_mut ( ) -> &mut f32

the amount of second offset Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named offsetB.

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

◆ progress()

auto meshlib::DoubleOffsetSettings::progress ( ) const -> &meshlib::std_function_bool_from_float

to report algorithm's progress and to cancel it Returns a pointer to a member variable of class MR::DoubleOffsetSettings named progress.

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

◆ progress_mut()

auto meshlib::DoubleOffsetSettings::progress_mut ( ) -> &mut meshlib::std_function_bool_from_float

to report algorithm's progress and to cancel it Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named progress.

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

◆ set_adaptivity()

void meshlib::DoubleOffsetSettings::set_adaptivity ( value:f32 )

in [0; 1] - ratio of combining small triangles into bigger ones (curvature can be lost on high values) Modifies a member variable of class MR::DoubleOffsetSettings named adaptivity.

Calls MR_DoubleOffsetSettings_Set_adaptivity().

◆ set_fwn()

void meshlib::DoubleOffsetSettings::set_fwn ( value:&meshlib::std_shared_ptr_MR_IFastWindingNumber )

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used Modifies a member variable of class MR::DoubleOffsetSettings named fwn.

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

◆ set_offset_a()

void meshlib::DoubleOffsetSettings::set_offset_a ( value:f32 )

the amount of first offset Modifies a member variable of class MR::DoubleOffsetSettings named offsetA.

Calls MR_DoubleOffsetSettings_Set_offsetA().

◆ set_offset_b()

void meshlib::DoubleOffsetSettings::set_offset_b ( value:f32 )

the amount of second offset Modifies a member variable of class MR::DoubleOffsetSettings named offsetB.

Calls MR_DoubleOffsetSettings_Set_offsetB().

◆ set_progress()

void meshlib::DoubleOffsetSettings::set_progress ( value:&meshlib::std_function_bool_from_float )

to report algorithm's progress and to cancel it Modifies a member variable of class MR::DoubleOffsetSettings named progress.

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

◆ set_voxel_size()

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

the size of voxel in intermediate voxel grid representation Modifies a member variable of class MR::DoubleOffsetSettings named voxelSize.

Calls MR_DoubleOffsetSettings_Set_voxelSize().

◆ set_winding_number_beta()

void meshlib::DoubleOffsetSettings::set_winding_number_beta ( value:f32 )

determines the precision of fast approximation: the more the better, minimum value is 1 Modifies a member variable of class MR::DoubleOffsetSettings named windingNumberBeta.

Calls MR_DoubleOffsetSettings_Set_windingNumberBeta().

◆ set_winding_number_threshold()

void meshlib::DoubleOffsetSettings::set_winding_number_threshold ( value:f32 )

positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Modifies a member variable of class MR::DoubleOffsetSettings named windingNumberThreshold.

Calls MR_DoubleOffsetSettings_Set_windingNumberThreshold().

◆ voxel_size()

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

the size of voxel in intermediate voxel grid representation Returns a pointer to a member variable of class MR::DoubleOffsetSettings named voxelSize.

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

◆ voxel_size_mut()

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

the size of voxel in intermediate voxel grid representation Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named voxelSize.

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

◆ winding_number_beta()

auto meshlib::DoubleOffsetSettings::winding_number_beta ( ) const -> &f32

determines the precision of fast approximation: the more the better, minimum value is 1 Returns a pointer to a member variable of class MR::DoubleOffsetSettings named windingNumberBeta.

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

◆ winding_number_beta_mut()

auto meshlib::DoubleOffsetSettings::winding_number_beta_mut ( ) -> &mut f32

determines the precision of fast approximation: the more the better, minimum value is 1 Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named windingNumberBeta.

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

◆ winding_number_threshold()

auto meshlib::DoubleOffsetSettings::winding_number_threshold ( ) const -> &f32

positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Returns a pointer to a member variable of class MR::DoubleOffsetSettings named windingNumberThreshold.

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

◆ winding_number_threshold_mut()

auto meshlib::DoubleOffsetSettings::winding_number_threshold_mut ( ) -> &mut f32

positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named windingNumberThreshold.

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


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