MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::TriangulationParameters Struct Reference

Parameters of point cloud triangulation. More...

Inheritance diagram for meshlib::TriangulationParameters:

Public Member Functions

auto assign_from_another (_other:&meshlib::TriangulationParameters) -> &mut meshlib::TriangulationParameters
auto num_neighbours () const -> &core::ffi::c_int
 The number of nearest neighbor points to use for building of local triangulation.
auto num_neighbours_mut () -> &mut core::ffi::c_int
 The number of nearest neighbor points to use for building of local triangulation.
void set_num_neighbours (value:core::ffi::c_int)
 The number of nearest neighbor points to use for building of local triangulation.
auto radius () const -> &f32
auto radius_mut () -> &mut f32
void set_radius (value:f32)
auto crit_angle () const -> &f32
 Critical angle of triangles in local triangulation (angle between triangles in fan should be less then this value)
auto crit_angle_mut () -> &mut f32
 Critical angle of triangles in local triangulation (angle between triangles in fan should be less then this value)
void set_crit_angle (value:f32)
 Critical angle of triangles in local triangulation (angle between triangles in fan should be less then this value)
auto boundary_angle () const -> &f32
auto boundary_angle_mut () -> &mut f32
void set_boundary_angle (value:f32)
auto crit_hole_length () const -> &f32
 Critical length of hole (all holes with perimeter up to this value will be filled)
auto crit_hole_length_mut () -> &mut f32
 Critical length of hole (all holes with perimeter up to this value will be filled)
void set_crit_hole_length (value:f32)
 Critical length of hole (all holes with perimeter up to this value will be filled)
auto automatic_radius_increase () const -> &bool
auto automatic_radius_increase_mut () -> &mut bool
void set_automatic_radius_increase (value:bool)
auto search_neighbors () const -> *const *const meshlib::ffi::MR_PointCloud
auto search_neighbors_mut () -> *mut *const meshlib::ffi::MR_PointCloud
void set_search_neighbors (value:Option<&meshlib::PointCloud >)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::TriangulationParameters >
static auto construct_from (numNeighbours:core::ffi::c_int, radius:f32, critAngle:f32, boundaryAngle:f32, critHoleLength:f32, automaticRadiusIncrease:bool, searchNeighbors:Option<&meshlib::PointCloud >) -> meshlib::Owned< meshlib::TriangulationParameters >
static auto construct_from_another (_other:&meshlib::TriangulationParameters) -> meshlib::Owned< meshlib::TriangulationParameters >
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

Parameters of point cloud triangulation.

See also
triangulatePointCloud

Generated from class MR::TriangulationParameters.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ automatic_radius_increase()

auto meshlib::TriangulationParameters::automatic_radius_increase ( ) const -> &bool

automatic increase of the radius if points outside can make triangles from original radius not-Delone Returns a pointer to a member variable of class MR::TriangulationParameters named automaticRadiusIncrease.

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

◆ automatic_radius_increase_mut()

auto meshlib::TriangulationParameters::automatic_radius_increase_mut ( ) -> &mut bool

automatic increase of the radius if points outside can make triangles from original radius not-Delone Returns a mutable pointer to a member variable of class MR::TriangulationParameters named automaticRadiusIncrease.

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

◆ boundary_angle()

auto meshlib::TriangulationParameters::boundary_angle ( ) const -> &f32

the vertex is considered as boundary if its neighbor ring has angle more than this value Returns a pointer to a member variable of class MR::TriangulationParameters named boundaryAngle.

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

◆ boundary_angle_mut()

auto meshlib::TriangulationParameters::boundary_angle_mut ( ) -> &mut f32

the vertex is considered as boundary if its neighbor ring has angle more than this value Returns a mutable pointer to a member variable of class MR::TriangulationParameters named boundaryAngle.

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

◆ construct_from()

auto meshlib::TriangulationParameters::construct_from ( numNeighbours:core::ffi::c_int ,
radius:f32 ,
critAngle:f32 ,
boundaryAngle:f32 ,
critHoleLength:f32 ,
automaticRadiusIncrease:bool ,
searchNeighbors:Option<&meshlib::PointCloud >  ) -> meshlib::Owned< meshlib::TriangulationParameters >
static

Constructs MR::TriangulationParameters elementwise.

Calls MR_TriangulationParameters_ConstructFrom(). The reference to the parameter searchNeighbors might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::TriangulationParameters::TriangulationParameters.

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

◆ crit_angle()

auto meshlib::TriangulationParameters::crit_angle ( ) const -> &f32

Critical angle of triangles in local triangulation (angle between triangles in fan should be less then this value)

Good
Too small value

Returns a pointer to a member variable of class MR::TriangulationParameters named critAngle.

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

◆ crit_angle_mut()

auto meshlib::TriangulationParameters::crit_angle_mut ( ) -> &mut f32

Critical angle of triangles in local triangulation (angle between triangles in fan should be less then this value)

Good
Too small value

Returns a mutable pointer to a member variable of class MR::TriangulationParameters named critAngle.

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

◆ crit_hole_length()

auto meshlib::TriangulationParameters::crit_hole_length ( ) const -> &f32

Critical length of hole (all holes with perimeter up to this value will be filled)

If value is negative, it is set automatically to 0.1 * (bounding box diagonal of the point cloud)

Returns a pointer to a member variable of class MR::TriangulationParameters named critHoleLength.

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

◆ crit_hole_length_mut()

auto meshlib::TriangulationParameters::crit_hole_length_mut ( ) -> &mut f32

Critical length of hole (all holes with perimeter up to this value will be filled)

If value is negative, it is set automatically to 0.1 * (bounding box diagonal of the point cloud)

Returns a mutable pointer to a member variable of class MR::TriangulationParameters named critHoleLength.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_TriangulationParameters_DefaultConstruct().

◆ num_neighbours()

auto meshlib::TriangulationParameters::num_neighbours ( ) const -> &core::ffi::c_int

The number of nearest neighbor points to use for building of local triangulation.

Note
Too small value can make not optimal triangulation and additional holes
Too big value increases difficulty of optimization and decreases performance
Good
Too small value

Returns a pointer to a member variable of class MR::TriangulationParameters named numNeighbours.

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

◆ num_neighbours_mut()

auto meshlib::TriangulationParameters::num_neighbours_mut ( ) -> &mut core::ffi::c_int

The number of nearest neighbor points to use for building of local triangulation.

Note
Too small value can make not optimal triangulation and additional holes
Too big value increases difficulty of optimization and decreases performance
Good
Too small value

Returns a mutable pointer to a member variable of class MR::TriangulationParameters named numNeighbours.

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

◆ radius()

auto meshlib::TriangulationParameters::radius ( ) const -> &f32

Radius of neighborhood around each point to consider for building local triangulation. This is an alternative to numNeighbours parameter. Please set to positive value only one of them.

Returns a pointer to a member variable of class MR::TriangulationParameters named radius.

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

◆ radius_mut()

auto meshlib::TriangulationParameters::radius_mut ( ) -> &mut f32

Radius of neighborhood around each point to consider for building local triangulation. This is an alternative to numNeighbours parameter. Please set to positive value only one of them.

Returns a mutable pointer to a member variable of class MR::TriangulationParameters named radius.

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

◆ search_neighbors()

auto meshlib::TriangulationParameters::search_neighbors ( ) const -> *const *const meshlib::ffi::MR_PointCloud

optional: if provided this cloud will be used for searching of neighbors (so it must have same validPoints) Returns a pointer to a member variable of class MR::TriangulationParameters named searchNeighbors.

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

◆ search_neighbors_mut()

auto meshlib::TriangulationParameters::search_neighbors_mut ( ) -> *mut *const meshlib::ffi::MR_PointCloud

optional: if provided this cloud will be used for searching of neighbors (so it must have same validPoints) Returns a mutable pointer to a member variable of class MR::TriangulationParameters named searchNeighbors.

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

void meshlib::TriangulationParameters::set_automatic_radius_increase ( value:bool )

automatic increase of the radius if points outside can make triangles from original radius not-Delone Modifies a member variable of class MR::TriangulationParameters named automaticRadiusIncrease.

Calls MR_TriangulationParameters_Set_automaticRadiusIncrease().

◆ set_boundary_angle()

void meshlib::TriangulationParameters::set_boundary_angle ( value:f32 )

the vertex is considered as boundary if its neighbor ring has angle more than this value Modifies a member variable of class MR::TriangulationParameters named boundaryAngle.

Calls MR_TriangulationParameters_Set_boundaryAngle().

◆ set_crit_angle()

void meshlib::TriangulationParameters::set_crit_angle ( value:f32 )

Critical angle of triangles in local triangulation (angle between triangles in fan should be less then this value)

Good
Too small value

Modifies a member variable of class MR::TriangulationParameters named critAngle.

Calls MR_TriangulationParameters_Set_critAngle().

◆ set_crit_hole_length()

void meshlib::TriangulationParameters::set_crit_hole_length ( value:f32 )

Critical length of hole (all holes with perimeter up to this value will be filled)

If value is negative, it is set automatically to 0.1 * (bounding box diagonal of the point cloud)

Modifies a member variable of class MR::TriangulationParameters named critHoleLength.

Calls MR_TriangulationParameters_Set_critHoleLength().

◆ set_num_neighbours()

void meshlib::TriangulationParameters::set_num_neighbours ( value:core::ffi::c_int )

The number of nearest neighbor points to use for building of local triangulation.

Note
Too small value can make not optimal triangulation and additional holes
Too big value increases difficulty of optimization and decreases performance
Good
Too small value

Modifies a member variable of class MR::TriangulationParameters named numNeighbours.

Calls MR_TriangulationParameters_Set_numNeighbours().

◆ set_radius()

void meshlib::TriangulationParameters::set_radius ( value:f32 )

Radius of neighborhood around each point to consider for building local triangulation. This is an alternative to numNeighbours parameter. Please set to positive value only one of them.

Modifies a member variable of class MR::TriangulationParameters named radius.

Calls MR_TriangulationParameters_Set_radius().

◆ set_search_neighbors()

void meshlib::TriangulationParameters::set_search_neighbors ( value:Option<&meshlib::PointCloud > )

optional: if provided this cloud will be used for searching of neighbors (so it must have same validPoints) Modifies a member variable of class MR::TriangulationParameters named searchNeighbors.

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


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