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

Public Member Functions

auto assign_from_another (_other:&meshlib::ShrinkwrapParameters) -> &mut meshlib::ShrinkwrapParameters
auto offset () const -> &f32
auto offset_mut () -> &mut f32
void set_offset (value:f32)
auto region () const -> *const *const meshlib::ffi::MR_VertBitSet
auto region_mut () -> *mut *const meshlib::ffi::MR_VertBitSet
void set_region (value:Option<&meshlib::VertBitSet >)
auto projector () const -> *const *mut meshlib::ffi::MR_IPointsToMeshProjector
auto projector_mut () -> *mut *mut meshlib::ffi::MR_IPointsToMeshProjector
void set_projector (value:Option<&mut meshlib::IPointsToMeshProjector >)
auto lo_dist_limit_sq () const -> &f32
auto lo_dist_limit_sq_mut () -> &mut f32
void set_lo_dist_limit_sq (value:f32)
auto up_dist_limit_sq () const -> &f32
auto up_dist_limit_sq_mut () -> &mut f32
void set_up_dist_limit_sq (value:f32)
auto ref_xf () const -> *const *const meshlib::AffineXf3f
auto ref_xf_mut () -> *mut *const meshlib::AffineXf3f
void set_ref_xf (value:Option<&meshlib::AffineXf3f >)
auto xf () const -> *const *const meshlib::AffineXf3f
auto xf_mut () -> *mut *const meshlib::AffineXf3f
void set_xf (value:Option<&meshlib::AffineXf3f >)
auto upcast_to_mesh_projection_parameters () const -> &meshlib::MeshProjectionParameters
auto upcast_to_mesh_projection_parameters_mut () -> &mut meshlib::MeshProjectionParameters

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::ShrinkwrapParameters >
static auto construct_from_another (_other:&meshlib::ShrinkwrapParameters) -> meshlib::Owned< meshlib::ShrinkwrapParameters >
static auto static_downcast_from_mesh_projection_parameters (object:&meshlib::MeshProjectionParameters) -> &Self
static auto static_downcast_from_mesh_projection_parameters_mut (object:&mut meshlib::MeshProjectionParameters) -> &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

Generated from class MR::ShrinkwrapParameters. Base classes: Direct: (non-virtual) MR::MeshProjectionParameters

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::ShrinkwrapParameters::ShrinkwrapParameters.

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

◆ lo_dist_limit_sq()

auto meshlib::ShrinkwrapParameters::lo_dist_limit_sq ( ) const -> &f32

minimum squared distance from a test point to mesh to be computed precisely, if a mesh point is found within this distance then it is immediately returned without searching for a closer one Returns a pointer to a member variable of class MR::ShrinkwrapParameters named loDistLimitSq.

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

◆ lo_dist_limit_sq_mut()

auto meshlib::ShrinkwrapParameters::lo_dist_limit_sq_mut ( ) -> &mut f32

minimum squared distance from a test point to mesh to be computed precisely, if a mesh point is found within this distance then it is immediately returned without searching for a closer one Returns a mutable pointer to a member variable of class MR::ShrinkwrapParameters named loDistLimitSq.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_ShrinkwrapParameters_DefaultConstruct().

◆ offset()

auto meshlib::ShrinkwrapParameters::offset ( ) const -> &f32

each vertex is displaced by this distance from the closest point found, along the pseudonormal of refMesh there: positive - outside refMesh, negative - inside; measured in refMesh coordinates Returns a pointer to a member variable of class MR::ShrinkwrapParameters named offset.

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

◆ offset_mut()

auto meshlib::ShrinkwrapParameters::offset_mut ( ) -> &mut f32

each vertex is displaced by this distance from the closest point found, along the pseudonormal of refMesh there: positive - outside refMesh, negative - inside; measured in refMesh coordinates Returns a mutable pointer to a member variable of class MR::ShrinkwrapParameters named offset.

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

◆ projector()

auto meshlib::ShrinkwrapParameters::projector ( ) const -> *const *mut meshlib::ffi::MR_IPointsToMeshProjector

if provided then the projections are computed by it, otherwise CPU's computations are used Returns a pointer to a member variable of class MR::ShrinkwrapParameters named projector.

Calls MR_ShrinkwrapParameters_Get_projector(). 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.

◆ projector_mut()

auto meshlib::ShrinkwrapParameters::projector_mut ( ) -> *mut *mut meshlib::ffi::MR_IPointsToMeshProjector

if provided then the projections are computed by it, otherwise CPU's computations are used Returns a mutable pointer to a member variable of class MR::ShrinkwrapParameters named projector.

Calls MR_ShrinkwrapParameters_GetMutable_projector(). 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.

◆ ref_xf()

auto meshlib::ShrinkwrapParameters::ref_xf ( ) const -> *const *const meshlib::AffineXf3f

optional reference mesh to world transformation Returns a pointer to a member variable of class MR::ShrinkwrapParameters named refXf.

Calls MR_ShrinkwrapParameters_Get_refXf(). 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.

◆ ref_xf_mut()

auto meshlib::ShrinkwrapParameters::ref_xf_mut ( ) -> *mut *const meshlib::AffineXf3f

optional reference mesh to world transformation Returns a mutable pointer to a member variable of class MR::ShrinkwrapParameters named refXf.

Calls MR_ShrinkwrapParameters_GetMutable_refXf(). 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.

◆ region()

auto meshlib::ShrinkwrapParameters::region ( ) const -> *const *const meshlib::ffi::MR_VertBitSet

if provided then only the vertices from this region are moved, and the others remain in place Returns a pointer to a member variable of class MR::ShrinkwrapParameters named region.

Calls MR_ShrinkwrapParameters_Get_region(). 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.

◆ region_mut()

auto meshlib::ShrinkwrapParameters::region_mut ( ) -> *mut *const meshlib::ffi::MR_VertBitSet

if provided then only the vertices from this region are moved, and the others remain in place Returns a mutable pointer to a member variable of class MR::ShrinkwrapParameters named region.

Calls MR_ShrinkwrapParameters_GetMutable_region(). 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.

◆ set_lo_dist_limit_sq()

void meshlib::ShrinkwrapParameters::set_lo_dist_limit_sq ( value:f32 )

minimum squared distance from a test point to mesh to be computed precisely, if a mesh point is found within this distance then it is immediately returned without searching for a closer one Modifies a member variable of class MR::ShrinkwrapParameters named loDistLimitSq.

Calls MR_ShrinkwrapParameters_Set_loDistLimitSq().

◆ set_offset()

void meshlib::ShrinkwrapParameters::set_offset ( value:f32 )

each vertex is displaced by this distance from the closest point found, along the pseudonormal of refMesh there: positive - outside refMesh, negative - inside; measured in refMesh coordinates Modifies a member variable of class MR::ShrinkwrapParameters named offset.

Calls MR_ShrinkwrapParameters_Set_offset().

◆ set_projector()

void meshlib::ShrinkwrapParameters::set_projector ( value:Option<&mut meshlib::IPointsToMeshProjector > )

if provided then the projections are computed by it, otherwise CPU's computations are used Modifies a member variable of class MR::ShrinkwrapParameters named projector.

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

◆ set_ref_xf()

void meshlib::ShrinkwrapParameters::set_ref_xf ( value:Option<&meshlib::AffineXf3f > )

optional reference mesh to world transformation Modifies a member variable of class MR::ShrinkwrapParameters named refXf.

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

◆ set_region()

void meshlib::ShrinkwrapParameters::set_region ( value:Option<&meshlib::VertBitSet > )

if provided then only the vertices from this region are moved, and the others remain in place Modifies a member variable of class MR::ShrinkwrapParameters named region.

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

◆ set_up_dist_limit_sq()

void meshlib::ShrinkwrapParameters::set_up_dist_limit_sq ( value:f32 )

maximum squared distance from a test point to mesh to be computed precisely, if actual distance is larger than upDistLimit will be returned with not-trusted sign Modifies a member variable of class MR::ShrinkwrapParameters named upDistLimitSq.

Calls MR_ShrinkwrapParameters_Set_upDistLimitSq().

◆ set_xf()

void meshlib::ShrinkwrapParameters::set_xf ( value:Option<&meshlib::AffineXf3f > )

optional test points to world transformation Modifies a member variable of class MR::ShrinkwrapParameters named xf.

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

◆ static_downcast_from_mesh_projection_parameters()

auto meshlib::ShrinkwrapParameters::static_downcast_from_mesh_projection_parameters ( object:&meshlib::MeshProjectionParameters ) -> &Self
static

Static downcast from the base class MR::MeshProjectionParameters.

Calls MR_ShrinkwrapParameters_StaticDowncastFrom_MR_MeshProjectionParameters(). Undefined behavior if the object isn't actually a ShrinkwrapParameters.

Note
This function is unsafe.

◆ static_downcast_from_mesh_projection_parameters_mut()

auto meshlib::ShrinkwrapParameters::static_downcast_from_mesh_projection_parameters_mut ( object:&mut meshlib::MeshProjectionParameters ) -> &mut Self
static

Static downcast from the base class MR::MeshProjectionParameters.

Calls MR_ShrinkwrapParameters_MutableStaticDowncastFrom_MR_MeshProjectionParameters(). Undefined behavior if the object isn't actually a ShrinkwrapParameters.

Note
This function is unsafe.

◆ up_dist_limit_sq()

auto meshlib::ShrinkwrapParameters::up_dist_limit_sq ( ) const -> &f32

maximum squared distance from a test point to mesh to be computed precisely, if actual distance is larger than upDistLimit will be returned with not-trusted sign Returns a pointer to a member variable of class MR::ShrinkwrapParameters named upDistLimitSq.

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

◆ up_dist_limit_sq_mut()

auto meshlib::ShrinkwrapParameters::up_dist_limit_sq_mut ( ) -> &mut f32

maximum squared distance from a test point to mesh to be computed precisely, if actual distance is larger than upDistLimit will be returned with not-trusted sign Returns a mutable pointer to a member variable of class MR::ShrinkwrapParameters named upDistLimitSq.

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

◆ upcast_to_mesh_projection_parameters()

auto meshlib::ShrinkwrapParameters::upcast_to_mesh_projection_parameters ( ) const -> &meshlib::MeshProjectionParameters

Upcasts to the base class MR::MeshProjectionParameters.

Calls MR_ShrinkwrapParameters_UpcastTo_MR_MeshProjectionParameters().

◆ upcast_to_mesh_projection_parameters_mut()

auto meshlib::ShrinkwrapParameters::upcast_to_mesh_projection_parameters_mut ( ) -> &mut meshlib::MeshProjectionParameters

Upcasts to the base class MR::MeshProjectionParameters.

Calls MR_ShrinkwrapParameters_MutableUpcastTo_MR_MeshProjectionParameters().

◆ xf()

auto meshlib::ShrinkwrapParameters::xf ( ) const -> *const *const meshlib::AffineXf3f

optional test points to world transformation Returns a pointer to a member variable of class MR::ShrinkwrapParameters named xf.

Calls MR_ShrinkwrapParameters_Get_xf(). 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.

◆ xf_mut()

auto meshlib::ShrinkwrapParameters::xf_mut ( ) -> *mut *const meshlib::AffineXf3f

optional test points to world transformation Returns a mutable pointer to a member variable of class MR::ShrinkwrapParameters named xf.

Calls MR_ShrinkwrapParameters_GetMutable_xf(). 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.


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