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

Public Member Functions

auto assign_from_another (_other:&meshlib::DecimatePolylineSettings_MR_Vector3f) -> &mut meshlib::DecimatePolylineSettings_MR_Vector3f
auto max_error () const -> &f32
auto max_error_mut () -> &mut f32
void set_max_error (value:f32)
auto max_edge_len () const -> &f32
auto max_edge_len_mut () -> &mut f32
void set_max_edge_len (value:f32)
auto stabilizer () const -> &f32
auto stabilizer_mut () -> &mut f32
void set_stabilizer (value:f32)
auto optimize_vertex_pos () const -> &bool
auto optimize_vertex_pos_mut () -> &mut bool
void set_optimize_vertex_pos (value:bool)
auto max_deleted_vertices () const -> &core::ffi::c_int
auto max_deleted_vertices_mut () -> &mut core::ffi::c_int
void set_max_deleted_vertices (value:core::ffi::c_int)
auto region () const -> *const *mut meshlib::ffi::MR_VertBitSet
auto region_mut () -> *mut *mut meshlib::ffi::MR_VertBitSet
void set_region (value:Option<&mut meshlib::VertBitSet >)
auto touch_bd_vertices () const -> &bool
auto touch_bd_vertices_mut () -> &mut bool
void set_touch_bd_vertices (value:bool)
auto pre_collapse () const -> &meshlib::std_function_bool_from_MR_EdgeId_const_MR_Vector3f_ref
 The user can provide this optional callback that is invoked immediately before edge collapse;.
auto pre_collapse_mut () -> &mut meshlib::std_function_bool_from_MR_EdgeId_const_MR_Vector3f_ref
 The user can provide this optional callback that is invoked immediately before edge collapse;.
void set_pre_collapse (value:&meshlib::std_function_bool_from_MR_EdgeId_const_MR_Vector3f_ref)
 The user can provide this optional callback that is invoked immediately before edge collapse;.
auto adjust_collapse () const -> &meshlib::std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector3f_ref
 The user can provide this optional callback for adjusting error introduced by this edge collapse and the collapse position.
auto adjust_collapse_mut () -> &mut meshlib::std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector3f_ref
 The user can provide this optional callback for adjusting error introduced by this edge collapse and the collapse position.
void set_adjust_collapse (value:&meshlib::std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector3f_ref)
 The user can provide this optional callback for adjusting error introduced by this edge collapse and the collapse position.
auto vert_forms () const -> *const *mut meshlib::ffi::MR_Vector_MR_QuadraticForm3f_MR_VertId
 If not null, then on input: if the vector is not empty then it is taken for initialization instead of form computation for all vertices; on output: quadratic form for each remaining vertex is returned there.
auto vert_forms_mut () -> *mut *mut meshlib::ffi::MR_Vector_MR_QuadraticForm3f_MR_VertId
 If not null, then on input: if the vector is not empty then it is taken for initialization instead of form computation for all vertices; on output: quadratic form for each remaining vertex is returned there.
void set_vert_forms (value:Option<&mut meshlib::Vector_MR_QuadraticForm3f_MR_VertId >)
 If not null, then on input: if the vector is not empty then it is taken for initialization instead of form computation for all vertices; on output: quadratic form for each remaining vertex is returned there.

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::DecimatePolylineSettings_MR_Vector3f >
static auto construct_from (maxError:f32, maxEdgeLen:f32, stabilizer:f32, optimizeVertexPos:bool, maxDeletedVertices:core::ffi::c_int, region:Option<&mut meshlib::VertBitSet >, touchBdVertices:bool, preCollapse:&meshlib::std_function_bool_from_MR_EdgeId_const_MR_Vector3f_ref, adjustCollapse:&meshlib::std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector3f_ref, vertForms:Option<&mut meshlib::Vector_MR_QuadraticForm3f_MR_VertId >) -> meshlib::Owned< meshlib::DecimatePolylineSettings_MR_Vector3f >
static auto construct_from_another (_other:&meshlib::DecimatePolylineSettings_MR_Vector3f) -> meshlib::Owned< meshlib::DecimatePolylineSettings_MR_Vector3f >
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

Member Function Documentation

◆ adjust_collapse()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::adjust_collapse ( ) const -> &meshlib::std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector3f_ref

The user can provide this optional callback for adjusting error introduced by this edge collapse and the collapse position.

On input the callback gets the squared error and position computed by standard means, and callback can modify any of them. The larger the error, the later this edge will be collapsed. This callback can be called from many threads in parallel and must be thread-safe. This callback can be called many times for each edge before real collapsing, and it is important to make the same adjustment.

Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named adjustCollapse.

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

◆ adjust_collapse_mut()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::adjust_collapse_mut ( ) -> &mut meshlib::std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector3f_ref

The user can provide this optional callback for adjusting error introduced by this edge collapse and the collapse position.

On input the callback gets the squared error and position computed by standard means, and callback can modify any of them. The larger the error, the later this edge will be collapsed. This callback can be called from many threads in parallel and must be thread-safe. This callback can be called many times for each edge before real collapsing, and it is important to make the same adjustment.

Returns a mutable pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named adjustCollapse.

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

◆ assign_from_another()

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

Generated from method MR::DecimatePolylineSettings<MR::Vector3f>::operator=.

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

◆ construct_from()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::construct_from ( maxError:f32 ,
maxEdgeLen:f32 ,
stabilizer:f32 ,
optimizeVertexPos:bool ,
maxDeletedVertices:core::ffi::c_int ,
region:Option<&mut meshlib::VertBitSet > ,
touchBdVertices:bool ,
preCollapse:&meshlib::std_function_bool_from_MR_EdgeId_const_MR_Vector3f_ref ,
adjustCollapse:&meshlib::std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector3f_ref ,
vertForms:Option<&mut meshlib::Vector_MR_QuadraticForm3f_MR_VertId >  ) -> meshlib::Owned< meshlib::DecimatePolylineSettings_MR_Vector3f >
static

Constructs MR::DecimatePolylineSettings<MR::Vector3f> elementwise.

Calls MR_DecimatePolylineSettings_MR_Vector3f_ConstructFrom(). The reference to the parameter region might be preserved in the constructed object. The reference to the parameter preCollapse might be preserved in the constructed object. The reference to the parameter adjustCollapse might be preserved in the constructed object. The reference to the parameter vertForms might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::DecimatePolylineSettings<MR::Vector3f>::DecimatePolylineSettings.

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

◆ max_deleted_vertices()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::max_deleted_vertices ( ) const -> &core::ffi::c_int

Limit on the number of deleted vertices Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named maxDeletedVertices.

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

◆ max_deleted_vertices_mut()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::max_deleted_vertices_mut ( ) -> &mut core::ffi::c_int

Limit on the number of deleted vertices Returns a mutable pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named maxDeletedVertices.

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

◆ max_edge_len()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::max_edge_len ( ) const -> &f32

Maximal possible edge length created during decimation Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named maxEdgeLen.

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

◆ max_edge_len_mut()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::max_edge_len_mut ( ) -> &mut f32

Maximal possible edge length created during decimation Returns a mutable pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named maxEdgeLen.

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

◆ max_error()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::max_error ( ) const -> &f32

Limit from above on the maximum distance from moved vertices to original contour Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named maxError.

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

◆ max_error_mut()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::max_error_mut ( ) -> &mut f32

Limit from above on the maximum distance from moved vertices to original contour Returns a mutable pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named maxError.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_DecimatePolylineSettings_MR_Vector3f_DefaultConstruct().

◆ optimize_vertex_pos()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::optimize_vertex_pos ( ) const -> &bool

if true then after each edge collapse the position of remaining vertex is optimized to minimize local shape change, if false then the edge is collapsed in one of its vertices, which keeps its position Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named optimizeVertexPos.

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

◆ optimize_vertex_pos_mut()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::optimize_vertex_pos_mut ( ) -> &mut bool

if true then after each edge collapse the position of remaining vertex is optimized to minimize local shape change, if false then the edge is collapsed in one of its vertices, which keeps its position Returns a mutable pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named optimizeVertexPos.

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

◆ pre_collapse()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::pre_collapse ( ) const -> &meshlib::std_function_bool_from_MR_EdgeId_const_MR_Vector3f_ref

The user can provide this optional callback that is invoked immediately before edge collapse;.

It receives the edge being collapsed: its destination vertex will disappear, and its origin vertex will get new position (provided as the second argument) after collapse; If the callback returns false, then the collapse is prohibited

Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named preCollapse.

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

◆ pre_collapse_mut()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::pre_collapse_mut ( ) -> &mut meshlib::std_function_bool_from_MR_EdgeId_const_MR_Vector3f_ref

The user can provide this optional callback that is invoked immediately before edge collapse;.

It receives the edge being collapsed: its destination vertex will disappear, and its origin vertex will get new position (provided as the second argument) after collapse; If the callback returns false, then the collapse is prohibited

Returns a mutable pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named preCollapse.

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

◆ region()

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

Region of the polyline to be decimated, it is updated during the operation Remain nullptr to include the whole polyline Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named region.

Calls MR_DecimatePolylineSettings_MR_Vector3f_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::DecimatePolylineSettings_MR_Vector3f::region_mut ( ) -> *mut *mut meshlib::ffi::MR_VertBitSet

Region of the polyline to be decimated, it is updated during the operation Remain nullptr to include the whole polyline Returns a mutable pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named region.

Calls MR_DecimatePolylineSettings_MR_Vector3f_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_adjust_collapse()

void meshlib::DecimatePolylineSettings_MR_Vector3f::set_adjust_collapse ( value:&meshlib::std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector3f_ref )

The user can provide this optional callback for adjusting error introduced by this edge collapse and the collapse position.

On input the callback gets the squared error and position computed by standard means, and callback can modify any of them. The larger the error, the later this edge will be collapsed. This callback can be called from many threads in parallel and must be thread-safe. This callback can be called many times for each edge before real collapsing, and it is important to make the same adjustment.

Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named adjustCollapse.

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

◆ set_max_deleted_vertices()

void meshlib::DecimatePolylineSettings_MR_Vector3f::set_max_deleted_vertices ( value:core::ffi::c_int )

Limit on the number of deleted vertices Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named maxDeletedVertices.

Calls MR_DecimatePolylineSettings_MR_Vector3f_Set_maxDeletedVertices().

◆ set_max_edge_len()

void meshlib::DecimatePolylineSettings_MR_Vector3f::set_max_edge_len ( value:f32 )

Maximal possible edge length created during decimation Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named maxEdgeLen.

Calls MR_DecimatePolylineSettings_MR_Vector3f_Set_maxEdgeLen().

◆ set_max_error()

void meshlib::DecimatePolylineSettings_MR_Vector3f::set_max_error ( value:f32 )

Limit from above on the maximum distance from moved vertices to original contour Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named maxError.

Calls MR_DecimatePolylineSettings_MR_Vector3f_Set_maxError().

◆ set_optimize_vertex_pos()

void meshlib::DecimatePolylineSettings_MR_Vector3f::set_optimize_vertex_pos ( value:bool )

if true then after each edge collapse the position of remaining vertex is optimized to minimize local shape change, if false then the edge is collapsed in one of its vertices, which keeps its position Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named optimizeVertexPos.

Calls MR_DecimatePolylineSettings_MR_Vector3f_Set_optimizeVertexPos().

◆ set_pre_collapse()

void meshlib::DecimatePolylineSettings_MR_Vector3f::set_pre_collapse ( value:&meshlib::std_function_bool_from_MR_EdgeId_const_MR_Vector3f_ref )

The user can provide this optional callback that is invoked immediately before edge collapse;.

It receives the edge being collapsed: its destination vertex will disappear, and its origin vertex will get new position (provided as the second argument) after collapse; If the callback returns false, then the collapse is prohibited

Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named preCollapse.

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

◆ set_region()

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

Region of the polyline to be decimated, it is updated during the operation Remain nullptr to include the whole polyline Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named region.

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

◆ set_stabilizer()

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

Stabilizer is dimensionless coefficient. The larger is stabilizer, the more Decimator will strive to retain the density of input points. If stabilizer is zero, then only the shape of input line will be preserved. Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named stabilizer.

Calls MR_DecimatePolylineSettings_MR_Vector3f_Set_stabilizer().

◆ set_touch_bd_vertices()

void meshlib::DecimatePolylineSettings_MR_Vector3f::set_touch_bd_vertices ( value:bool )

Whether to allow collapsing edges with at least one vertex on the end of not-closed polyline (or on region boundary if region is given); if touchBdVertices is false then boundary vertices are strictly fixed Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named touchBdVertices.

Calls MR_DecimatePolylineSettings_MR_Vector3f_Set_touchBdVertices().

◆ set_vert_forms()

void meshlib::DecimatePolylineSettings_MR_Vector3f::set_vert_forms ( value:Option<&mut meshlib::Vector_MR_QuadraticForm3f_MR_VertId > )

If not null, then on input: if the vector is not empty then it is taken for initialization instead of form computation for all vertices; on output: quadratic form for each remaining vertex is returned there.

Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named vertForms.

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

◆ stabilizer()

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

Stabilizer is dimensionless coefficient. The larger is stabilizer, the more Decimator will strive to retain the density of input points. If stabilizer is zero, then only the shape of input line will be preserved. Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named stabilizer.

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

◆ stabilizer_mut()

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

Stabilizer is dimensionless coefficient. The larger is stabilizer, the more Decimator will strive to retain the density of input points. If stabilizer is zero, then only the shape of input line will be preserved. Returns a mutable pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named stabilizer.

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

◆ touch_bd_vertices()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::touch_bd_vertices ( ) const -> &bool

Whether to allow collapsing edges with at least one vertex on the end of not-closed polyline (or on region boundary if region is given); if touchBdVertices is false then boundary vertices are strictly fixed Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named touchBdVertices.

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

◆ touch_bd_vertices_mut()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::touch_bd_vertices_mut ( ) -> &mut bool

Whether to allow collapsing edges with at least one vertex on the end of not-closed polyline (or on region boundary if region is given); if touchBdVertices is false then boundary vertices are strictly fixed Returns a mutable pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named touchBdVertices.

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

◆ vert_forms()

auto meshlib::DecimatePolylineSettings_MR_Vector3f::vert_forms ( ) const -> *const *mut meshlib::ffi::MR_Vector_MR_QuadraticForm3f_MR_VertId

If not null, then on input: if the vector is not empty then it is taken for initialization instead of form computation for all vertices; on output: quadratic form for each remaining vertex is returned there.

Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named vertForms.

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

auto meshlib::DecimatePolylineSettings_MR_Vector3f::vert_forms_mut ( ) -> *mut *mut meshlib::ffi::MR_Vector_MR_QuadraticForm3f_MR_VertId

If not null, then on input: if the vector is not empty then it is taken for initialization instead of form computation for all vertices; on output: quadratic form for each remaining vertex is returned there.

Returns a mutable pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector3f> named vertForms.

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