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

Public Member Functions

auto assign_from_another (_other:&meshlib::PositionVertsSmoothlyParams) -> &mut meshlib::PositionVertsSmoothlyParams
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 vert_shifts () const -> *const *const meshlib::ffi::MR_VertCoords
auto vert_shifts_mut () -> *mut *const meshlib::ffi::MR_VertCoords
void set_vert_shifts (value:Option<&meshlib::VertCoords >)
auto stabilizer () const -> &f32
auto stabilizer_mut () -> &mut f32
void set_stabilizer (value:f32)
auto vert_stabilizers () const -> &meshlib::std_function_float_from_MR_VertId
auto vert_stabilizers_mut () -> &mut meshlib::std_function_float_from_MR_VertId
void set_vert_stabilizers (value:&meshlib::std_function_float_from_MR_VertId)
auto edge_weights () const -> &meshlib::std_function_float_from_MR_UndirectedEdgeId
auto edge_weights_mut () -> &mut meshlib::std_function_float_from_MR_UndirectedEdgeId
void set_edge_weights (value:&meshlib::std_function_float_from_MR_UndirectedEdgeId)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::PositionVertsSmoothlyParams >
static auto construct_from (region:Option<&meshlib::VertBitSet >, vertShifts:Option<&meshlib::VertCoords >, stabilizer:f32, vertStabilizers:&meshlib::std_function_float_from_MR_VertId, edgeWeights:&meshlib::std_function_float_from_MR_UndirectedEdgeId) -> meshlib::Owned< meshlib::PositionVertsSmoothlyParams >
static auto construct_from_another (_other:&meshlib::PositionVertsSmoothlyParams) -> meshlib::Owned< meshlib::PositionVertsSmoothlyParams >
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::PositionVertsSmoothlyParams.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::PositionVertsSmoothlyParams::construct_from ( region:Option<&meshlib::VertBitSet > ,
vertShifts:Option<&meshlib::VertCoords > ,
stabilizer:f32 ,
vertStabilizers:&meshlib::std_function_float_from_MR_VertId ,
edgeWeights:&meshlib::std_function_float_from_MR_UndirectedEdgeId  ) -> meshlib::Owned< meshlib::PositionVertsSmoothlyParams >
static

Constructs MR::PositionVertsSmoothlyParams elementwise.

Calls MR_PositionVertsSmoothlyParams_ConstructFrom(). The reference to the parameter region might be preserved in the constructed object. The reference to the parameter vertShifts might be preserved in the constructed object. The reference to the parameter vertStabilizers might be preserved in the constructed object. The reference to the parameter edgeWeights might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::PositionVertsSmoothlyParams::PositionVertsSmoothlyParams.

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

◆ edge_weights()

auto meshlib::PositionVertsSmoothlyParams::edge_weights ( ) const -> &meshlib::std_function_float_from_MR_UndirectedEdgeId

if specified then it is used for edge weights instead of default 1 Returns a pointer to a member variable of class MR::PositionVertsSmoothlyParams named edgeWeights.

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

◆ edge_weights_mut()

auto meshlib::PositionVertsSmoothlyParams::edge_weights_mut ( ) -> &mut meshlib::std_function_float_from_MR_UndirectedEdgeId

if specified then it is used for edge weights instead of default 1 Returns a mutable pointer to a member variable of class MR::PositionVertsSmoothlyParams named edgeWeights.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_PositionVertsSmoothlyParams_DefaultConstruct().

◆ region()

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

which vertices on mesh are smoothed, nullptr means all vertices; it must not include all vertices of a mesh connected component unless stabilizer > 0 Returns a pointer to a member variable of class MR::PositionVertsSmoothlyParams named region.

Calls MR_PositionVertsSmoothlyParams_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::PositionVertsSmoothlyParams::region_mut ( ) -> *mut *const meshlib::ffi::MR_VertBitSet

which vertices on mesh are smoothed, nullptr means all vertices; it must not include all vertices of a mesh connected component unless stabilizer > 0 Returns a mutable pointer to a member variable of class MR::PositionVertsSmoothlyParams named region.

Calls MR_PositionVertsSmoothlyParams_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_edge_weights()

void meshlib::PositionVertsSmoothlyParams::set_edge_weights ( value:&meshlib::std_function_float_from_MR_UndirectedEdgeId )

if specified then it is used for edge weights instead of default 1 Modifies a member variable of class MR::PositionVertsSmoothlyParams named edgeWeights.

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

◆ set_region()

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

which vertices on mesh are smoothed, nullptr means all vertices; it must not include all vertices of a mesh connected component unless stabilizer > 0 Modifies a member variable of class MR::PositionVertsSmoothlyParams named region.

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

◆ set_stabilizer()

void meshlib::PositionVertsSmoothlyParams::set_stabilizer ( value:f32 )

the more the value, the bigger attraction of each vertex to its original position Modifies a member variable of class MR::PositionVertsSmoothlyParams named stabilizer.

Calls MR_PositionVertsSmoothlyParams_Set_stabilizer().

◆ set_vert_shifts()

void meshlib::PositionVertsSmoothlyParams::set_vert_shifts ( value:Option<&meshlib::VertCoords > )

optional additional shifts of each vertex relative to smooth position Modifies a member variable of class MR::PositionVertsSmoothlyParams named vertShifts.

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

◆ set_vert_stabilizers()

void meshlib::PositionVertsSmoothlyParams::set_vert_stabilizers ( value:&meshlib::std_function_float_from_MR_VertId )

if specified then it is used instead of stabilizer Modifies a member variable of class MR::PositionVertsSmoothlyParams named vertStabilizers.

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

◆ stabilizer()

auto meshlib::PositionVertsSmoothlyParams::stabilizer ( ) const -> &f32

the more the value, the bigger attraction of each vertex to its original position Returns a pointer to a member variable of class MR::PositionVertsSmoothlyParams named stabilizer.

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

◆ stabilizer_mut()

auto meshlib::PositionVertsSmoothlyParams::stabilizer_mut ( ) -> &mut f32

the more the value, the bigger attraction of each vertex to its original position Returns a mutable pointer to a member variable of class MR::PositionVertsSmoothlyParams named stabilizer.

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

◆ vert_shifts()

auto meshlib::PositionVertsSmoothlyParams::vert_shifts ( ) const -> *const *const meshlib::ffi::MR_VertCoords

optional additional shifts of each vertex relative to smooth position Returns a pointer to a member variable of class MR::PositionVertsSmoothlyParams named vertShifts.

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

◆ vert_shifts_mut()

auto meshlib::PositionVertsSmoothlyParams::vert_shifts_mut ( ) -> *mut *const meshlib::ffi::MR_VertCoords

optional additional shifts of each vertex relative to smooth position Returns a mutable pointer to a member variable of class MR::PositionVertsSmoothlyParams named vertShifts.

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

◆ vert_stabilizers()

auto meshlib::PositionVertsSmoothlyParams::vert_stabilizers ( ) const -> &meshlib::std_function_float_from_MR_VertId

if specified then it is used instead of stabilizer Returns a pointer to a member variable of class MR::PositionVertsSmoothlyParams named vertStabilizers.

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

◆ vert_stabilizers_mut()

auto meshlib::PositionVertsSmoothlyParams::vert_stabilizers_mut ( ) -> &mut meshlib::std_function_float_from_MR_VertId

if specified then it is used instead of stabilizer Returns a mutable pointer to a member variable of class MR::PositionVertsSmoothlyParams named vertStabilizers.

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


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