MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.TriangulationParameters Class Reference

Parameters of point cloud triangulation. More...

Inheritance diagram for meshlib.TriangulationParameters:

Public Member Functions

 TriangulationParameters (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 TriangulationParameters ()
 TriangulationParameters (int numNeighbours, float radius, float critAngle, float boundaryAngle, float critHoleLength, boolean automaticRadiusIncrease, meshlib.PointCloud searchNeighbors)
 TriangulationParameters (meshlib.TriangulationParameters _other)
meshlib.TriangulationParameters assignFromAnother (meshlib.TriangulationParameters _other)
int numNeighbours ()
 The number of nearest neighbor points to use for building of local triangulation.
void setNumNeighbours (int value)
 The number of nearest neighbor points to use for building of local triangulation.
float radius ()
void setRadius (float value)
float critAngle ()
 Critical angle of triangles in local triangulation (angle between triangles in fan should be less then this value)
void setCritAngle (float value)
 Critical angle of triangles in local triangulation (angle between triangles in fan should be less then this value)
float boundaryAngle ()
void setBoundaryAngle (float value)
float critHoleLength ()
 Critical length of hole (all holes with perimeter up to this value will be filled)
void setCritHoleLength (float value)
 Critical length of hole (all holes with perimeter up to this value will be filled)
boolean automaticRadiusIncrease ()
void setAutomaticRadiusIncrease (boolean value)
java.lang.foreign.MemorySegment searchNeighbors ()
void setSearchNeighbors (meshlib.PointCloud 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

Parameters of point cloud triangulation.

See also
triangulatePointCloud

Generated from class MR::TriangulationParameters.

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

Constructor & Destructor Documentation

◆ TriangulationParameters() [1/4]

meshlib.TriangulationParameters.TriangulationParameters ( 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.

◆ TriangulationParameters() [2/4]

meshlib.TriangulationParameters.TriangulationParameters ( )

Constructs an empty (default-constructed) instance.

Calls MR_TriangulationParameters_DefaultConstruct().

◆ TriangulationParameters() [3/4]

meshlib.TriangulationParameters.TriangulationParameters ( int numNeighbours,
float radius,
float critAngle,
float boundaryAngle,
float critHoleLength,
boolean automaticRadiusIncrease,
meshlib.PointCloud searchNeighbors )

Constructs MR::TriangulationParameters elementwise. The reference to the parameter searchNeighbors might be preserved in the constructed object.

Calls MR_TriangulationParameters_ConstructFrom().

◆ TriangulationParameters() [4/4]

meshlib.TriangulationParameters.TriangulationParameters ( meshlib.TriangulationParameters _other)

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

Calls MR_TriangulationParameters_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.TriangulationParameters meshlib.TriangulationParameters.assignFromAnother ( meshlib.TriangulationParameters _other)

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

Calls MR_TriangulationParameters_AssignFromAnother().

◆ automaticRadiusIncrease()

boolean meshlib.TriangulationParameters.automaticRadiusIncrease ( )

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

Calls MR_TriangulationParameters_Get_automaticRadiusIncrease().

◆ boundaryAngle()

float meshlib.TriangulationParameters.boundaryAngle ( )

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

Calls MR_TriangulationParameters_Get_boundaryAngle().

◆ critAngle()

float meshlib.TriangulationParameters.critAngle ( )

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

Calls MR_TriangulationParameters_Get_critAngle().

◆ critHoleLength()

float meshlib.TriangulationParameters.critHoleLength ( )

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

Calls MR_TriangulationParameters_Get_critHoleLength().

◆ numNeighbours()

int meshlib.TriangulationParameters.numNeighbours ( )

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

Calls MR_TriangulationParameters_Get_numNeighbours().

◆ radius()

float meshlib.TriangulationParameters.radius ( )

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

Calls MR_TriangulationParameters_Get_radius().

◆ searchNeighbors()

java.lang.foreign.MemorySegment meshlib.TriangulationParameters.searchNeighbors ( )

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

Calls MR_TriangulationParameters_Get_searchNeighbors(). Some types are raw C types, see the C bindings for the details.

◆ setAutomaticRadiusIncrease()

void meshlib.TriangulationParameters.setAutomaticRadiusIncrease ( boolean value)

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

◆ setBoundaryAngle()

void meshlib.TriangulationParameters.setBoundaryAngle ( float value)

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

◆ setCritAngle()

void meshlib.TriangulationParameters.setCritAngle ( float value)

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

◆ setCritHoleLength()

void meshlib.TriangulationParameters.setCritHoleLength ( float value)

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

◆ setNumNeighbours()

void meshlib.TriangulationParameters.setNumNeighbours ( int value)

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

◆ setRadius()

void meshlib.TriangulationParameters.setRadius ( float value)

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

◆ setSearchNeighbors()

void meshlib.TriangulationParameters.setSearchNeighbors ( meshlib.PointCloud value)

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

Calls MR_TriangulationParameters_Set_searchNeighbors().


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