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

Public Member Functions

auto assign_from_another (_other:&meshlib::FillHoleParams) -> &mut meshlib::FillHoleParams
auto metric () const -> &meshlib::FillHoleMetric
auto metric_mut () -> &mut meshlib::FillHoleMetric
void set_metric (value:&meshlib::FillHoleMetric)
auto smooth_bd () const -> &bool
auto smooth_bd_mut () -> &mut bool
void set_smooth_bd (value:bool)
auto out_new_faces () const -> *const *mut meshlib::ffi::MR_FaceBitSet
auto out_new_faces_mut () -> *mut *mut meshlib::ffi::MR_FaceBitSet
void set_out_new_faces (value:Option<&mut meshlib::FaceBitSet >)
auto multiple_edges_resolve_mode () const -> &meshlib::FillHoleParams_MultipleEdgesResolveMode
auto multiple_edges_resolve_mode_mut () -> &mut meshlib::FillHoleParams_MultipleEdgesResolveMode
void set_multiple_edges_resolve_mode (value:meshlib::FillHoleParams_MultipleEdgesResolveMode)
auto make_degenerate_band () const -> &bool
auto make_degenerate_band_mut () -> &mut bool
void set_make_degenerate_band (value:bool)
auto max_polygon_subdivisions () const -> &core::ffi::c_int
auto max_polygon_subdivisions_mut () -> &mut core::ffi::c_int
void set_max_polygon_subdivisions (value:core::ffi::c_int)
auto stop_before_bad_triangulation () const -> *const *mut bool
auto stop_before_bad_triangulation_mut () -> *mut *mut bool
void set_stop_before_bad_triangulation (value:Option<&mut bool >)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::FillHoleParams >
static auto construct_from (metric:&meshlib::FillHoleMetric, smoothBd:bool, outNewFaces:Option<&mut meshlib::FaceBitSet >, multipleEdgesResolveMode:meshlib::FillHoleParams_MultipleEdgesResolveMode, makeDegenerateBand:bool, maxPolygonSubdivisions:core::ffi::c_int, stopBeforeBadTriangulation:Option<&mut bool >) -> meshlib::Owned< meshlib::FillHoleParams >
static auto construct_from_another (_other:&meshlib::FillHoleParams) -> meshlib::Owned< meshlib::FillHoleParams >
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

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::FillHoleParams::construct_from ( metric:&meshlib::FillHoleMetric ,
smoothBd:bool ,
outNewFaces:Option<&mut meshlib::FaceBitSet > ,
multipleEdgesResolveMode:meshlib::FillHoleParams_MultipleEdgesResolveMode ,
makeDegenerateBand:bool ,
maxPolygonSubdivisions:core::ffi::c_int ,
stopBeforeBadTriangulation:Option<&mut bool >  ) -> meshlib::Owned< meshlib::FillHoleParams >
static

Constructs MR::FillHoleParams elementwise.

Calls MR_FillHoleParams_ConstructFrom(). The reference to the parameter metric might be preserved in the constructed object. The reference to the parameter outNewFaces might be preserved in the constructed object. The reference to the parameter multipleEdgesResolveMode might be preserved in the constructed object. The reference to the parameter stopBeforeBadTriangulation might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::FillHoleParams::FillHoleParams.

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

◆ make_degenerate_band()

auto meshlib::FillHoleParams::make_degenerate_band ( ) const -> &bool

If true creates degenerate faces band around hole to have sharp angle visualization

Warning
This flag bad for result topology, most likely you do not need it

Returns a pointer to a member variable of class MR::FillHoleParams named makeDegenerateBand.

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

◆ make_degenerate_band_mut()

auto meshlib::FillHoleParams::make_degenerate_band_mut ( ) -> &mut bool

If true creates degenerate faces band around hole to have sharp angle visualization

Warning
This flag bad for result topology, most likely you do not need it

Returns a mutable pointer to a member variable of class MR::FillHoleParams named makeDegenerateBand.

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

◆ max_polygon_subdivisions()

auto meshlib::FillHoleParams::max_polygon_subdivisions ( ) const -> &core::ffi::c_int

The maximum number of polygon subdivisions on a triangle and two smaller polygons, must be 2 or larger

Returns a pointer to a member variable of class MR::FillHoleParams named maxPolygonSubdivisions.

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

◆ max_polygon_subdivisions_mut()

auto meshlib::FillHoleParams::max_polygon_subdivisions_mut ( ) -> &mut core::ffi::c_int

The maximum number of polygon subdivisions on a triangle and two smaller polygons, must be 2 or larger

Returns a mutable pointer to a member variable of class MR::FillHoleParams named maxPolygonSubdivisions.

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

◆ metric()

auto meshlib::FillHoleParams::metric ( ) const -> &meshlib::FillHoleMetric

Specifies triangulation metric
default for MR::fillHole: getCircumscribedFillMetric

See also
FillHoleMetric

Returns a pointer to a member variable of class MR::FillHoleParams named metric.

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

◆ metric_mut()

auto meshlib::FillHoleParams::metric_mut ( ) -> &mut meshlib::FillHoleMetric

Specifies triangulation metric
default for MR::fillHole: getCircumscribedFillMetric

See also
FillHoleMetric

Returns a mutable pointer to a member variable of class MR::FillHoleParams named metric.

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

◆ multiple_edges_resolve_mode()

auto meshlib::FillHoleParams::multiple_edges_resolve_mode ( ) const -> &meshlib::FillHoleParams_MultipleEdgesResolveMode

Returns a pointer to a member variable of class MR::FillHoleParams named multipleEdgesResolveMode.

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

◆ multiple_edges_resolve_mode_mut()

auto meshlib::FillHoleParams::multiple_edges_resolve_mode_mut ( ) -> &mut meshlib::FillHoleParams_MultipleEdgesResolveMode

Returns a mutable pointer to a member variable of class MR::FillHoleParams named multipleEdgesResolveMode.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_FillHoleParams_DefaultConstruct().

◆ out_new_faces()

auto meshlib::FillHoleParams::out_new_faces ( ) const -> *const *mut meshlib::ffi::MR_FaceBitSet

If not nullptr accumulate new faces Returns a pointer to a member variable of class MR::FillHoleParams named outNewFaces.

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

◆ out_new_faces_mut()

auto meshlib::FillHoleParams::out_new_faces_mut ( ) -> *mut *mut meshlib::ffi::MR_FaceBitSet

If not nullptr accumulate new faces Returns a mutable pointer to a member variable of class MR::FillHoleParams named outNewFaces.

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

void meshlib::FillHoleParams::set_make_degenerate_band ( value:bool )

If true creates degenerate faces band around hole to have sharp angle visualization

Warning
This flag bad for result topology, most likely you do not need it

Modifies a member variable of class MR::FillHoleParams named makeDegenerateBand.

Calls MR_FillHoleParams_Set_makeDegenerateBand().

◆ set_max_polygon_subdivisions()

void meshlib::FillHoleParams::set_max_polygon_subdivisions ( value:core::ffi::c_int )

The maximum number of polygon subdivisions on a triangle and two smaller polygons, must be 2 or larger

Modifies a member variable of class MR::FillHoleParams named maxPolygonSubdivisions.

Calls MR_FillHoleParams_Set_maxPolygonSubdivisions().

◆ set_metric()

void meshlib::FillHoleParams::set_metric ( value:&meshlib::FillHoleMetric )

Specifies triangulation metric
default for MR::fillHole: getCircumscribedFillMetric

See also
FillHoleMetric

Modifies a member variable of class MR::FillHoleParams named metric.

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

◆ set_multiple_edges_resolve_mode()

void meshlib::FillHoleParams::set_multiple_edges_resolve_mode ( value:meshlib::FillHoleParams_MultipleEdgesResolveMode )

Modifies a member variable of class MR::FillHoleParams named multipleEdgesResolveMode.

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

◆ set_out_new_faces()

void meshlib::FillHoleParams::set_out_new_faces ( value:Option<&mut meshlib::FaceBitSet > )

If not nullptr accumulate new faces Modifies a member variable of class MR::FillHoleParams named outNewFaces.

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

◆ set_smooth_bd()

void meshlib::FillHoleParams::set_smooth_bd ( value:bool )

If true, hole filling will minimize the sum of metrics including boundary edges, where one triangle was present before hole filling, and another is added during hole filling. This makes boundary edges same smooth as inner edges of the patch. If false, edge metric will not be applied to boundary edges, and the patch tends to make a sharper turn there.

Modifies a member variable of class MR::FillHoleParams named smoothBd.

Calls MR_FillHoleParams_Set_smoothBd().

◆ set_stop_before_bad_triangulation()

void meshlib::FillHoleParams::set_stop_before_bad_triangulation ( value:Option<&mut bool > )

Input/output value, if it is present: returns true if triangulation was bad and do not actually fill hole, if triangulation is ok returns false; if it is not present fill hole trivially in case of bad triangulation, (or leaves bad triangulation, depending on metric)

Modifies a member variable of class MR::FillHoleParams named stopBeforeBadTriangulation.

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

◆ smooth_bd()

auto meshlib::FillHoleParams::smooth_bd ( ) const -> &bool

If true, hole filling will minimize the sum of metrics including boundary edges, where one triangle was present before hole filling, and another is added during hole filling. This makes boundary edges same smooth as inner edges of the patch. If false, edge metric will not be applied to boundary edges, and the patch tends to make a sharper turn there.

Returns a pointer to a member variable of class MR::FillHoleParams named smoothBd.

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

◆ smooth_bd_mut()

auto meshlib::FillHoleParams::smooth_bd_mut ( ) -> &mut bool

If true, hole filling will minimize the sum of metrics including boundary edges, where one triangle was present before hole filling, and another is added during hole filling. This makes boundary edges same smooth as inner edges of the patch. If false, edge metric will not be applied to boundary edges, and the patch tends to make a sharper turn there.

Returns a mutable pointer to a member variable of class MR::FillHoleParams named smoothBd.

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

◆ stop_before_bad_triangulation()

auto meshlib::FillHoleParams::stop_before_bad_triangulation ( ) const -> *const *mut bool

Input/output value, if it is present: returns true if triangulation was bad and do not actually fill hole, if triangulation is ok returns false; if it is not present fill hole trivially in case of bad triangulation, (or leaves bad triangulation, depending on metric)

Returns a pointer to a member variable of class MR::FillHoleParams named stopBeforeBadTriangulation.

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

◆ stop_before_bad_triangulation_mut()

auto meshlib::FillHoleParams::stop_before_bad_triangulation_mut ( ) -> *mut *mut bool

Input/output value, if it is present: returns true if triangulation was bad and do not actually fill hole, if triangulation is ok returns false; if it is not present fill hole trivially in case of bad triangulation, (or leaves bad triangulation, depending on metric)

Returns a mutable pointer to a member variable of class MR::FillHoleParams named stopBeforeBadTriangulation.

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