MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.AlphaShapeData Class Reference
Inheritance diagram for meshlib.AlphaShapeData:

Public Member Functions

 AlphaShapeData (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 AlphaShapeData ()
 AlphaShapeData (meshlib.ConvertToIntVector toInt, meshlib.Vector_MR_Vector3i_MR_VertId intPoints, meshlib.VertBitSet twins, long intRadiusSq, float searchRadius)
 AlphaShapeData (meshlib.AlphaShapeData _other)
meshlib.AlphaShapeData assignFromAnother (meshlib.AlphaShapeData _other)
boolean knowsTwins ()
meshlib.PreciseVertCoords coords (meshlib.PointCloud cloud, meshlib.VertId v)
meshlib.ConvertToIntVector toInt ()
void setToInt (meshlib.ConvertToIntVector value)
meshlib.Vector_MR_Vector3i_MR_VertId intPoints ()
void setIntPoints (meshlib.Vector_MR_Vector3i_MR_VertId value)
meshlib.VertBitSet twins ()
void setTwins (meshlib.VertBitSet value)
long intRadiusSq ()
void setIntRadiusSq (long value)
float searchRadius ()
void setSearchRadius (float value)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

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.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ AlphaShapeData() [1/4]

meshlib.AlphaShapeData.AlphaShapeData ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ AlphaShapeData() [2/4]

meshlib.AlphaShapeData.AlphaShapeData ( )

Constructs an empty (default-constructed) instance.

Calls MR_AlphaShapeData_DefaultConstruct().

◆ AlphaShapeData() [3/4]

meshlib.AlphaShapeData.AlphaShapeData ( meshlib.ConvertToIntVector toInt,
meshlib.Vector_MR_Vector3i_MR_VertId intPoints,
meshlib.VertBitSet twins,
long intRadiusSq,
float searchRadius )

Constructs MR::AlphaShapeData elementwise. 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.

Calls MR_AlphaShapeData_ConstructFrom().

◆ AlphaShapeData() [4/4]

meshlib.AlphaShapeData.AlphaShapeData ( meshlib.AlphaShapeData _other)

Generated from constructor MR::AlphaShapeData::AlphaShapeData. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_AlphaShapeData_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.AlphaShapeData meshlib.AlphaShapeData.assignFromAnother ( meshlib.AlphaShapeData _other)

Generated from method MR::AlphaShapeData::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_AlphaShapeData_AssignFromAnother().

◆ coords()

meshlib.PreciseVertCoords meshlib.AlphaShapeData.coords ( meshlib.PointCloud cloud,
meshlib.VertId v )

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

◆ intPoints()

meshlib.Vector_MR_Vector3i_MR_VertId meshlib.AlphaShapeData.intPoints ( )

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. The reference to this object might be preserved as the return value.

Calls MR_AlphaShapeData_Get_intPoints().

◆ intRadiusSq()

long meshlib.AlphaShapeData.intRadiusSq ( )

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. The reference to this object might be preserved as the return value.

Calls MR_AlphaShapeData_Get_intRadiusSq().

◆ knowsTwins()

boolean meshlib.AlphaShapeData.knowsTwins ( )

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

◆ searchRadius()

float meshlib.AlphaShapeData.searchRadius ( )

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. The reference to this object might be preserved as the return value.

Calls MR_AlphaShapeData_Get_searchRadius().

◆ setIntPoints()

void meshlib.AlphaShapeData.setIntPoints ( meshlib.Vector_MR_Vector3i_MR_VertId value)

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. The reference to the parameter value might be preserved in this object in element intPoints.

Calls MR_AlphaShapeData_Set_intPoints().

◆ setIntRadiusSq()

void meshlib.AlphaShapeData.setIntRadiusSq ( long value)

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. The reference to the parameter value might be preserved in this object in element intRadiusSq.

Calls MR_AlphaShapeData_Set_intRadiusSq().

◆ setSearchRadius()

void meshlib.AlphaShapeData.setSearchRadius ( float value)

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

◆ setToInt()

void meshlib.AlphaShapeData.setToInt ( meshlib.ConvertToIntVector value)

converts cloud's points in integer coordinates Modifies a member variable of class MR::AlphaShapeData named toInt. The reference to the parameter value might be preserved in this object in element toInt.

Calls MR_AlphaShapeData_Set_toInt().

◆ setTwins()

void meshlib.AlphaShapeData.setTwins ( meshlib.VertBitSet value)

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. The reference to the parameter value might be preserved in this object in element twins.

Calls MR_AlphaShapeData_Set_twins().

◆ toInt()

meshlib.ConvertToIntVector meshlib.AlphaShapeData.toInt ( )

converts cloud's points in integer coordinates Returns a pointer to a member variable of class MR::AlphaShapeData named toInt. The reference to this object might be preserved as the return value.

Calls MR_AlphaShapeData_Get_toInt().

◆ twins()

meshlib.VertBitSet meshlib.AlphaShapeData.twins ( )

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. The reference to this object might be preserved as the return value.

Calls MR_AlphaShapeData_Get_twins().


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