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

Public Member Functions

auto assign_from_another (_other:&meshlib::AlphaShapeData) -> &mut meshlib::AlphaShapeData
auto knows_twins () const -> bool
auto coords (cloud:&meshlib::PointCloud, v:meshlib::VertId) const -> meshlib::Owned< meshlib::PreciseVertCoords >
auto to_int () const -> &meshlib::ConvertToIntVector
auto to_int_mut () -> &mut meshlib::ConvertToIntVector
void set_to_int (value:&meshlib::ConvertToIntVector)
auto int_points () const -> &meshlib::Vector_MR_Vector3i_MR_VertId
auto int_points_mut () -> &mut meshlib::Vector_MR_Vector3i_MR_VertId
void set_int_points (value:&meshlib::Vector_MR_Vector3i_MR_VertId)
auto twins () const -> &meshlib::VertBitSet
auto twins_mut () -> &mut meshlib::VertBitSet
void set_twins (value:&meshlib::VertBitSet)
auto int_radius_sq () const -> &i64
auto int_radius_sq_mut () -> &mut i64
void set_int_radius_sq (value:i64)
auto search_radius () const -> &f32
auto search_radius_mut () -> &mut f32
void set_search_radius (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::AlphaShapeData >
static auto construct_from (toInt:&meshlib::ConvertToIntVector, intPoints:&meshlib::Vector_MR_Vector3i_MR_VertId, twins:&meshlib::VertBitSet, intRadiusSq:i64, searchRadius:f32) -> meshlib::Owned< meshlib::AlphaShapeData >
static auto construct_from_another (_other:&meshlib::AlphaShapeData) -> meshlib::Owned< meshlib::AlphaShapeData >
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

a point cloud and a ball radius prepared for the search of alpha-shape triangles; the emptiness of a ball is tested in integer coordinates with simulation-of-simplicity resolving the degeneracies, so both the cloud and the radius are needed in integer form as well Generated from class MR::AlphaShapeData.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::AlphaShapeData::construct_from ( toInt:&meshlib::ConvertToIntVector ,
intPoints:&meshlib::Vector_MR_Vector3i_MR_VertId ,
twins:&meshlib::VertBitSet ,
intRadiusSq:i64 ,
searchRadius:f32  ) -> meshlib::Owned< meshlib::AlphaShapeData >
static

Constructs MR::AlphaShapeData elementwise.

Calls MR_AlphaShapeData_ConstructFrom(). The reference to the parameter toInt might be preserved in the constructed object. The reference to the parameter intPoints might be preserved in the constructed object. The reference to the parameter twins might be preserved in the constructed object. The reference to the parameter intRadiusSq might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::AlphaShapeData::AlphaShapeData.

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

◆ coords()

auto meshlib::AlphaShapeData::coords ( cloud:&meshlib::PointCloud ,
v:meshlib::VertId  ) const -> meshlib::Owned< meshlib::PreciseVertCoords >

returns point v of the cloud (which must be the cloud given to getAlphaShapeData) together with its integer coordinates Generated from method MR::AlphaShapeData::coords.

Calls MR_AlphaShapeData_coords().

◆ int_points()

auto meshlib::AlphaShapeData::int_points ( ) const -> &meshlib::Vector_MR_Vector3i_MR_VertId

integer coordinates of all valid points of the cloud, or empty if they have to be computed on the fly by toInt Returns a pointer to a member variable of class MR::AlphaShapeData named intPoints.

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

◆ int_points_mut()

auto meshlib::AlphaShapeData::int_points_mut ( ) -> &mut meshlib::Vector_MR_Vector3i_MR_VertId

integer coordinates of all valid points of the cloud, or empty if they have to be computed on the fly by toInt Returns a mutable pointer to a member variable of class MR::AlphaShapeData named intPoints.

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

◆ int_radius_sq()

auto meshlib::AlphaShapeData::int_radius_sq ( ) const -> &i64

squared ball radius in the units of toInt's integer grid, not larger than the squared original radius (so that no point inside a ball can be farther than searchRadius from the ball's points), and small enough for the predicates not to overflow Returns a pointer to a member variable of class MR::AlphaShapeData named intRadiusSq.

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

◆ int_radius_sq_mut()

auto meshlib::AlphaShapeData::int_radius_sq_mut ( ) -> &mut i64

squared ball radius in the units of toInt's integer grid, not larger than the squared original radius (so that no point inside a ball can be farther than searchRadius from the ball's points), and small enough for the predicates not to overflow Returns a mutable pointer to a member variable of class MR::AlphaShapeData named intRadiusSq.

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

◆ knows_twins()

auto meshlib::AlphaShapeData::knows_twins ( ) const -> bool

whether the twins are known, i.e. the data was prepared with allPoints=true (for a cloud with valid points) Generated from method MR::AlphaShapeData::knowsTwins.

Calls MR_AlphaShapeData_knowsTwins().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_AlphaShapeData_DefaultConstruct().

◆ search_radius()

auto meshlib::AlphaShapeData::search_radius ( ) const -> &f32

the radius of the neighbourhood of a point to consider; a bit larger than the doubled ball radius to compensate the rounding of integer coordinates Returns a pointer to a member variable of class MR::AlphaShapeData named searchRadius.

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

◆ search_radius_mut()

auto meshlib::AlphaShapeData::search_radius_mut ( ) -> &mut f32

the radius of the neighbourhood of a point to consider; a bit larger than the doubled ball radius to compensate the rounding of integer coordinates Returns a mutable pointer to a member variable of class MR::AlphaShapeData named searchRadius.

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

◆ set_int_points()

void meshlib::AlphaShapeData::set_int_points ( value:&meshlib::Vector_MR_Vector3i_MR_VertId )

integer coordinates of all valid points of the cloud, or empty if they have to be computed on the fly by toInt Modifies a member variable of class MR::AlphaShapeData named intPoints.

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

◆ set_int_radius_sq()

void meshlib::AlphaShapeData::set_int_radius_sq ( value:i64 )

squared ball radius in the units of toInt's integer grid, not larger than the squared original radius (so that no point inside a ball can be farther than searchRadius from the ball's points), and small enough for the predicates not to overflow Modifies a member variable of class MR::AlphaShapeData named intRadiusSq.

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

◆ set_search_radius()

void meshlib::AlphaShapeData::set_search_radius ( value:f32 )

the radius of the neighbourhood of a point to consider; a bit larger than the doubled ball radius to compensate the rounding of integer coordinates Modifies a member variable of class MR::AlphaShapeData named searchRadius.

Calls MR_AlphaShapeData_Set_searchRadius().

◆ set_to_int()

void meshlib::AlphaShapeData::set_to_int ( value:&meshlib::ConvertToIntVector )

converts cloud's points in integer coordinates Modifies a member variable of class MR::AlphaShapeData named toInt.

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

◆ set_twins()

void meshlib::AlphaShapeData::set_twins ( value:&meshlib::VertBitSet )

the valid points sharing their position in the integer grid with a point of a smaller id, which take part in no search: only the smallest id of a position does; filled together with intPoints, so empty if allPoints was false, and empty if there are no such points Modifies a member variable of class MR::AlphaShapeData named twins.

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

◆ to_int()

auto meshlib::AlphaShapeData::to_int ( ) const -> &meshlib::ConvertToIntVector

converts cloud's points in integer coordinates Returns a pointer to a member variable of class MR::AlphaShapeData named toInt.

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

◆ to_int_mut()

auto meshlib::AlphaShapeData::to_int_mut ( ) -> &mut meshlib::ConvertToIntVector

converts cloud's points in integer coordinates Returns a mutable pointer to a member variable of class MR::AlphaShapeData named toInt.

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

◆ twins()

auto meshlib::AlphaShapeData::twins ( ) const -> &meshlib::VertBitSet

the valid points sharing their position in the integer grid with a point of a smaller id, which take part in no search: only the smallest id of a position does; filled together with intPoints, so empty if allPoints was false, and empty if there are no such points Returns a pointer to a member variable of class MR::AlphaShapeData named twins.

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

◆ twins_mut()

auto meshlib::AlphaShapeData::twins_mut ( ) -> &mut meshlib::VertBitSet

the valid points sharing their position in the integer grid with a point of a smaller id, which take part in no search: only the smallest id of a position does; filled together with intPoints, so empty if allPoints was false, and empty if there are no such points Returns a mutable pointer to a member variable of class MR::AlphaShapeData named twins.

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


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