Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::DistanceToMeshOptions) -> &mut meshlib::DistanceToMeshOptions |
| auto | min_dist_sq () const -> &f32 |
| auto | min_dist_sq_mut () -> &mut f32 |
| void | set_min_dist_sq (value:f32) |
| auto | max_dist_sq () const -> &f32 |
| auto | max_dist_sq_mut () -> &mut f32 |
| void | set_max_dist_sq (value:f32) |
| auto | null_outside_min_max () const -> &bool |
| auto | null_outside_min_max_mut () -> &mut bool |
| void | set_null_outside_min_max (value:bool) |
| 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) |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::DistanceToMeshOptions > |
| static auto | construct_from (minDistSq:f32, maxDistSq:f32, nullOutsideMinMax:bool, windingNumberThreshold:f32, windingNumberBeta:f32) -> meshlib::Owned< meshlib::DistanceToMeshOptions > |
| static auto | construct_from_another (_other:&meshlib::DistanceToMeshOptions) -> meshlib::Owned< meshlib::DistanceToMeshOptions > |
| 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 |
options determining computation of distance from a point to a mesh Generated from class MR::DistanceToMeshOptions. Derived classes: Direct: (non-virtual) MR::SignedDistanceToMeshOptions
Generated from class MR::DistanceToMeshOptions. Heap-allocated instances are held in Owned<DistanceToMeshOptions>.
| auto meshlib::DistanceToMeshOptions::assign_from_another | ( | _other:&meshlib::DistanceToMeshOptions | ) | -> &mut meshlib::DistanceToMeshOptions |
Generated from method MR::DistanceToMeshOptions::operator=.
Calls MR_DistanceToMeshOptions_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
|
static |
Constructs MR::DistanceToMeshOptions elementwise.
Calls MR_DistanceToMeshOptions_ConstructFrom().
|
static |
Generated from constructor MR::DistanceToMeshOptions::DistanceToMeshOptions.
Calls MR_DistanceToMeshOptions_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::DistanceToMeshOptions::max_dist_sq | ( | ) | const -> &f32 |
maximum squared distance from a point to mesh to be computed precisely Returns a pointer to a member variable of class MR::DistanceToMeshOptions named maxDistSq.
Calls MR_DistanceToMeshOptions_Get_maxDistSq(). The reference to this object might be preserved as the return value.
| auto meshlib::DistanceToMeshOptions::max_dist_sq_mut | ( | ) | -> &mut f32 |
maximum squared distance from a point to mesh to be computed precisely Returns a mutable pointer to a member variable of class MR::DistanceToMeshOptions named maxDistSq.
Calls MR_DistanceToMeshOptions_GetMutable_maxDistSq(). The reference to this object might be preserved as the return value.
| auto meshlib::DistanceToMeshOptions::min_dist_sq | ( | ) | const -> &f32 |
minimum squared distance from a point to mesh to be computed precisely Returns a pointer to a member variable of class MR::DistanceToMeshOptions named minDistSq.
Calls MR_DistanceToMeshOptions_Get_minDistSq(). The reference to this object might be preserved as the return value.
| auto meshlib::DistanceToMeshOptions::min_dist_sq_mut | ( | ) | -> &mut f32 |
minimum squared distance from a point to mesh to be computed precisely Returns a mutable pointer to a member variable of class MR::DistanceToMeshOptions named minDistSq.
Calls MR_DistanceToMeshOptions_GetMutable_minDistSq(). The reference to this object might be preserved as the return value.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_DistanceToMeshOptions_DefaultConstruct().
| auto meshlib::DistanceToMeshOptions::null_outside_min_max | ( | ) | const -> &bool |
what to do if actual distance is outside [min, max) range: true - return std::nullopt for std::optional<float> or NaN for float, false - return approximate value of the distance (with correct sign in case of SignDetectionMode::HoleWindingRule); please note that in HoleWindingRule the sign can change even for too small or too large distances, so if you would like to get closed mesh from marching cubes, set false here Returns a pointer to a member variable of class MR::DistanceToMeshOptions named nullOutsideMinMax.
Calls MR_DistanceToMeshOptions_Get_nullOutsideMinMax(). The reference to this object might be preserved as the return value.
| auto meshlib::DistanceToMeshOptions::null_outside_min_max_mut | ( | ) | -> &mut bool |
what to do if actual distance is outside [min, max) range: true - return std::nullopt for std::optional<float> or NaN for float, false - return approximate value of the distance (with correct sign in case of SignDetectionMode::HoleWindingRule); please note that in HoleWindingRule the sign can change even for too small or too large distances, so if you would like to get closed mesh from marching cubes, set false here Returns a mutable pointer to a member variable of class MR::DistanceToMeshOptions named nullOutsideMinMax.
Calls MR_DistanceToMeshOptions_GetMutable_nullOutsideMinMax(). The reference to this object might be preserved as the return value.
| void meshlib::DistanceToMeshOptions::set_max_dist_sq | ( | value:f32 | ) |
maximum squared distance from a point to mesh to be computed precisely Modifies a member variable of class MR::DistanceToMeshOptions named maxDistSq.
Calls MR_DistanceToMeshOptions_Set_maxDistSq().
| void meshlib::DistanceToMeshOptions::set_min_dist_sq | ( | value:f32 | ) |
minimum squared distance from a point to mesh to be computed precisely Modifies a member variable of class MR::DistanceToMeshOptions named minDistSq.
Calls MR_DistanceToMeshOptions_Set_minDistSq().
| void meshlib::DistanceToMeshOptions::set_null_outside_min_max | ( | value:bool | ) |
what to do if actual distance is outside [min, max) range: true - return std::nullopt for std::optional<float> or NaN for float, false - return approximate value of the distance (with correct sign in case of SignDetectionMode::HoleWindingRule); please note that in HoleWindingRule the sign can change even for too small or too large distances, so if you would like to get closed mesh from marching cubes, set false here Modifies a member variable of class MR::DistanceToMeshOptions named nullOutsideMinMax.
Calls MR_DistanceToMeshOptions_Set_nullOutsideMinMax().
| void meshlib::DistanceToMeshOptions::set_winding_number_beta | ( | value:f32 | ) |
only for SignDetectionMode::HoleWindingRule: determines the precision of fast approximation: the more the better, minimum value is 1 Modifies a member variable of class MR::DistanceToMeshOptions named windingNumberBeta.
Calls MR_DistanceToMeshOptions_Set_windingNumberBeta().
| void meshlib::DistanceToMeshOptions::set_winding_number_threshold | ( | value:f32 | ) |
only for SignDetectionMode::HoleWindingRule: 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::DistanceToMeshOptions named windingNumberThreshold.
Calls MR_DistanceToMeshOptions_Set_windingNumberThreshold().
| auto meshlib::DistanceToMeshOptions::winding_number_beta | ( | ) | const -> &f32 |
only for SignDetectionMode::HoleWindingRule: determines the precision of fast approximation: the more the better, minimum value is 1 Returns a pointer to a member variable of class MR::DistanceToMeshOptions named windingNumberBeta.
Calls MR_DistanceToMeshOptions_Get_windingNumberBeta(). The reference to this object might be preserved as the return value.
| auto meshlib::DistanceToMeshOptions::winding_number_beta_mut | ( | ) | -> &mut f32 |
only for SignDetectionMode::HoleWindingRule: 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::DistanceToMeshOptions named windingNumberBeta.
Calls MR_DistanceToMeshOptions_GetMutable_windingNumberBeta(). The reference to this object might be preserved as the return value.
| auto meshlib::DistanceToMeshOptions::winding_number_threshold | ( | ) | const -> &f32 |
only for SignDetectionMode::HoleWindingRule: 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::DistanceToMeshOptions named windingNumberThreshold.
Calls MR_DistanceToMeshOptions_Get_windingNumberThreshold(). The reference to this object might be preserved as the return value.
| auto meshlib::DistanceToMeshOptions::winding_number_threshold_mut | ( | ) | -> &mut f32 |
only for SignDetectionMode::HoleWindingRule: 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::DistanceToMeshOptions named windingNumberThreshold.
Calls MR_DistanceToMeshOptions_GetMutable_windingNumberThreshold(). The reference to this object might be preserved as the return value.