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

Public Member Functions

auto assign_from_another (_other:&meshlib::PolylineSubdivideSettings) -> &mut meshlib::PolylineSubdivideSettings
auto max_edge_len () const -> &f32
auto max_edge_len_mut () -> &mut f32
void set_max_edge_len (value:f32)
auto max_edge_splits () const -> &core::ffi::c_int
auto max_edge_splits_mut () -> &mut core::ffi::c_int
void set_max_edge_splits (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 new_verts () const -> *const *mut meshlib::ffi::MR_VertBitSet
auto new_verts_mut () -> *mut *mut meshlib::ffi::MR_VertBitSet
void set_new_verts (value:Option<&mut meshlib::VertBitSet >)
auto use_curvature () const -> &bool
auto use_curvature_mut () -> &mut bool
void set_use_curvature (value:bool)
auto on_vert_created () const -> &meshlib::std_function_void_from_MR_VertId
auto on_vert_created_mut () -> &mut meshlib::std_function_void_from_MR_VertId
void set_on_vert_created (value:&meshlib::std_function_void_from_MR_VertId)
auto on_edge_split () const -> &meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId
auto on_edge_split_mut () -> &mut meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId
void set_on_edge_split (value:&meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId)
auto progress_callback () const -> &meshlib::std_function_bool_from_float
auto progress_callback_mut () -> &mut meshlib::std_function_bool_from_float
void set_progress_callback (value:&meshlib::std_function_bool_from_float)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::PolylineSubdivideSettings >
static auto construct_from (maxEdgeLen:f32, maxEdgeSplits:core::ffi::c_int, region:Option<&mut meshlib::VertBitSet >, newVerts:Option<&mut meshlib::VertBitSet >, useCurvature:bool, onVertCreated:&meshlib::std_function_void_from_MR_VertId, onEdgeSplit:&meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId, progressCallback:&meshlib::std_function_bool_from_float) -> meshlib::Owned< meshlib::PolylineSubdivideSettings >
static auto construct_from_another (_other:&meshlib::PolylineSubdivideSettings) -> meshlib::Owned< meshlib::PolylineSubdivideSettings >
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::PolylineSubdivideSettings.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::PolylineSubdivideSettings::construct_from ( maxEdgeLen:f32 ,
maxEdgeSplits:core::ffi::c_int ,
region:Option<&mut meshlib::VertBitSet > ,
newVerts:Option<&mut meshlib::VertBitSet > ,
useCurvature:bool ,
onVertCreated:&meshlib::std_function_void_from_MR_VertId ,
onEdgeSplit:&meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId ,
progressCallback:&meshlib::std_function_bool_from_float  ) -> meshlib::Owned< meshlib::PolylineSubdivideSettings >
static

Constructs MR::PolylineSubdivideSettings elementwise.

Calls MR_PolylineSubdivideSettings_ConstructFrom(). The reference to the parameter region might be preserved in the constructed object. The reference to the parameter newVerts might be preserved in the constructed object. The reference to the parameter onVertCreated might be preserved in the constructed object. The reference to the parameter onEdgeSplit might be preserved in the constructed object. The reference to the parameter progressCallback might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::PolylineSubdivideSettings::PolylineSubdivideSettings.

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

◆ max_edge_len()

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

Subdivision is stopped when all edges are not longer than this value Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named maxEdgeLen.

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

◆ max_edge_len_mut()

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

Subdivision is stopped when all edges are not longer than this value Returns a mutable pointer to a member variable of class MR::PolylineSubdivideSettings named maxEdgeLen.

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

◆ max_edge_splits()

auto meshlib::PolylineSubdivideSettings::max_edge_splits ( ) const -> &core::ffi::c_int

Maximum number of edge splits allowed Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named maxEdgeSplits.

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

◆ max_edge_splits_mut()

auto meshlib::PolylineSubdivideSettings::max_edge_splits_mut ( ) -> &mut core::ffi::c_int

Maximum number of edge splits allowed Returns a mutable pointer to a member variable of class MR::PolylineSubdivideSettings named maxEdgeSplits.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_PolylineSubdivideSettings_DefaultConstruct().

◆ new_verts()

auto meshlib::PolylineSubdivideSettings::new_verts ( ) const -> *const *mut meshlib::ffi::MR_VertBitSet

New vertices appeared during subdivision will be added here Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named newVerts.

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

◆ new_verts_mut()

auto meshlib::PolylineSubdivideSettings::new_verts_mut ( ) -> *mut *mut meshlib::ffi::MR_VertBitSet

New vertices appeared during subdivision will be added here Returns a mutable pointer to a member variable of class MR::PolylineSubdivideSettings named newVerts.

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

◆ on_edge_split()

auto meshlib::PolylineSubdivideSettings::on_edge_split ( ) const -> &meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId

this function is called each time edge (e) is split into (e1->e) Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named onEdgeSplit.

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

◆ on_edge_split_mut()

auto meshlib::PolylineSubdivideSettings::on_edge_split_mut ( ) -> &mut meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId

this function is called each time edge (e) is split into (e1->e) Returns a mutable pointer to a member variable of class MR::PolylineSubdivideSettings named onEdgeSplit.

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

◆ on_vert_created()

auto meshlib::PolylineSubdivideSettings::on_vert_created ( ) const -> &meshlib::std_function_void_from_MR_VertId

this function is called each time a new vertex has been created Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named onVertCreated.

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

◆ on_vert_created_mut()

auto meshlib::PolylineSubdivideSettings::on_vert_created_mut ( ) -> &mut meshlib::std_function_void_from_MR_VertId

this function is called each time a new vertex has been created Returns a mutable pointer to a member variable of class MR::PolylineSubdivideSettings named onVertCreated.

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

◆ progress_callback()

auto meshlib::PolylineSubdivideSettings::progress_callback ( ) const -> &meshlib::std_function_bool_from_float

callback to report algorithm progress and cancel it by user request Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named progressCallback.

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

◆ progress_callback_mut()

auto meshlib::PolylineSubdivideSettings::progress_callback_mut ( ) -> &mut meshlib::std_function_bool_from_float

callback to report algorithm progress and cancel it by user request Returns a mutable pointer to a member variable of class MR::PolylineSubdivideSettings named progressCallback.

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

◆ region()

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

Region on polyline to be subdivided: both edge vertices must be there to allow spitting, it is updated during the operation Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named region.

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

Region on polyline to be subdivided: both edge vertices must be there to allow spitting, it is updated during the operation Returns a mutable pointer to a member variable of class MR::PolylineSubdivideSettings named region.

Calls MR_PolylineSubdivideSettings_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_max_edge_len()

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

Subdivision is stopped when all edges are not longer than this value Modifies a member variable of class MR::PolylineSubdivideSettings named maxEdgeLen.

Calls MR_PolylineSubdivideSettings_Set_maxEdgeLen().

◆ set_max_edge_splits()

void meshlib::PolylineSubdivideSettings::set_max_edge_splits ( value:core::ffi::c_int )

Maximum number of edge splits allowed Modifies a member variable of class MR::PolylineSubdivideSettings named maxEdgeSplits.

Calls MR_PolylineSubdivideSettings_Set_maxEdgeSplits().

◆ set_new_verts()

void meshlib::PolylineSubdivideSettings::set_new_verts ( value:Option<&mut meshlib::VertBitSet > )

New vertices appeared during subdivision will be added here Modifies a member variable of class MR::PolylineSubdivideSettings named newVerts.

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

◆ set_on_edge_split()

void meshlib::PolylineSubdivideSettings::set_on_edge_split ( value:&meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId )

this function is called each time edge (e) is split into (e1->e) Modifies a member variable of class MR::PolylineSubdivideSettings named onEdgeSplit.

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

◆ set_on_vert_created()

void meshlib::PolylineSubdivideSettings::set_on_vert_created ( value:&meshlib::std_function_void_from_MR_VertId )

this function is called each time a new vertex has been created Modifies a member variable of class MR::PolylineSubdivideSettings named onVertCreated.

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

◆ set_progress_callback()

void meshlib::PolylineSubdivideSettings::set_progress_callback ( value:&meshlib::std_function_bool_from_float )

callback to report algorithm progress and cancel it by user request Modifies a member variable of class MR::PolylineSubdivideSettings named progressCallback.

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

◆ set_region()

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

Region on polyline to be subdivided: both edge vertices must be there to allow spitting, it is updated during the operation Modifies a member variable of class MR::PolylineSubdivideSettings named region.

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

◆ set_use_curvature()

void meshlib::PolylineSubdivideSettings::set_use_curvature ( value:bool )

This option works best for natural lines, where all segments have similar size, and no sharp angles in between Modifies a member variable of class MR::PolylineSubdivideSettings named useCurvature.

Calls MR_PolylineSubdivideSettings_Set_useCurvature().

◆ use_curvature()

auto meshlib::PolylineSubdivideSettings::use_curvature ( ) const -> &bool

This option works best for natural lines, where all segments have similar size, and no sharp angles in between Returns a pointer to a member variable of class MR::PolylineSubdivideSettings named useCurvature.

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

◆ use_curvature_mut()

auto meshlib::PolylineSubdivideSettings::use_curvature_mut ( ) -> &mut bool

This option works best for natural lines, where all segments have similar size, and no sharp angles in between Returns a mutable pointer to a member variable of class MR::PolylineSubdivideSettings named useCurvature.

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


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