MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.TriangulationParameters Class Reference
Inheritance diagram for mrmeshpy.TriangulationParameters:

Public Member Functions

None __init__ (self)
None __init__ (self, ConstTriangulationParameters arg0)
None __init__ (self, int numNeighbours, float radius, float critAngle, float boundaryAngle, float critHoleLength, bool automaticRadiusIncrease, ConstPointCloud searchNeighbors)
TriangulationParameters assign (self, ConstTriangulationParameters other)
bool automaticRadiusIncrease (self)
None automaticRadiusIncrease (self, bool arg1)
float boundaryAngle (self)
None boundaryAngle (self, float arg1)
float critAngle (self)
None critAngle (self, float arg1)
float critHoleLength (self)
None critHoleLength (self, float arg1)
int numNeighbours (self)
None numNeighbours (self, int arg1)
float radius (self)
None radius (self, float arg1)
PointCloud searchNeighbors (self)
None searchNeighbors (self, ConstPointCloud arg1)
Public Member Functions inherited from mrmeshpy.ConstTriangulationParameters
 __init__ (self, *args, **kwargs)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstTriangulationParameters
typing _offsetof_automaticRadiusIncrease = 20
typing _offsetof_boundaryAngle = 12
typing _offsetof_critAngle = 8
typing _offsetof_critHoleLength = 16
typing _offsetof_numNeighbours = 0
typing _offsetof_radius = 4
typing _offsetof_searchNeighbors = 24

Detailed Description

Generated from:  MR::TriangulationParameters

\\brief Parameters of point cloud triangulation
\\sa \\ref triangulatePointCloud

Constructor & Destructor Documentation

◆ __init__() [1/4]

None mrmeshpy.TriangulationParameters.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/4]

None mrmeshpy.TriangulationParameters.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.TriangulationParameters.__init__ ( self,
ConstTriangulationParameters arg0 )
Implicit copy constructor.

◆ __init__() [4/4]

None mrmeshpy.TriangulationParameters.__init__ ( self,
int numNeighbours,
float radius,
float critAngle,
float boundaryAngle,
float critHoleLength,
bool automaticRadiusIncrease,
ConstPointCloud searchNeighbors )
Implicit aggregate constructor.

Member Function Documentation

◆ assign()

TriangulationParameters mrmeshpy.TriangulationParameters.assign ( self,
ConstTriangulationParameters other )

◆ automaticRadiusIncrease() [1/2]

bool mrmeshpy.TriangulationParameters.automaticRadiusIncrease ( self)
automatic increase of the radius if points outside can make triangles from original radius not-Delone

Reimplemented from mrmeshpy.ConstTriangulationParameters.

◆ automaticRadiusIncrease() [2/2]

None mrmeshpy.TriangulationParameters.automaticRadiusIncrease ( self,
bool arg1 )
automatic increase of the radius if points outside can make triangles from original radius not-Delone

Reimplemented from mrmeshpy.ConstTriangulationParameters.

◆ boundaryAngle() [1/2]

float mrmeshpy.TriangulationParameters.boundaryAngle ( self)
the vertex is considered as boundary if its neighbor ring has angle more than this value

Reimplemented from mrmeshpy.ConstTriangulationParameters.

◆ boundaryAngle() [2/2]

None mrmeshpy.TriangulationParameters.boundaryAngle ( self,
float arg1 )
the vertex is considered as boundary if its neighbor ring has angle more than this value

Reimplemented from mrmeshpy.ConstTriangulationParameters.

◆ critAngle() [1/2]

float mrmeshpy.TriangulationParameters.critAngle ( self)
\\brief Critical angle of triangles in local triangulation (angle between triangles in fan should be less then this value)
<table border=0>
<caption id="TriangulationParameters::critAngle_examples"></caption>
<tr>
<td> \\image html triangulate/triangulate_3.png "Good" width = 350cm </td>
<td> \\image html triangulate/triangulate_4.png "Too small value" width = 350cm </td>
</tr>
</table>

Reimplemented from mrmeshpy.ConstTriangulationParameters.

◆ critAngle() [2/2]

None mrmeshpy.TriangulationParameters.critAngle ( self,
float arg1 )
\\brief Critical angle of triangles in local triangulation (angle between triangles in fan should be less then this value)
<table border=0>
<caption id="TriangulationParameters::critAngle_examples"></caption>
<tr>
<td> \\image html triangulate/triangulate_3.png "Good" width = 350cm </td>
<td> \\image html triangulate/triangulate_4.png "Too small value" width = 350cm </td>
</tr>
</table>

Reimplemented from mrmeshpy.ConstTriangulationParameters.

◆ critHoleLength() [1/2]

float mrmeshpy.TriangulationParameters.critHoleLength ( self)
\\brief Critical length of hole (all holes with perimeter up to this value will be filled)
\\details If value is negative, it is set automatically to 0.1 * (bounding box diagonal of the point cloud)

Reimplemented from mrmeshpy.ConstTriangulationParameters.

◆ critHoleLength() [2/2]

None mrmeshpy.TriangulationParameters.critHoleLength ( self,
float arg1 )
\\brief Critical length of hole (all holes with perimeter up to this value will be filled)
\\details If value is negative, it is set automatically to 0.1 * (bounding box diagonal of the point cloud)

Reimplemented from mrmeshpy.ConstTriangulationParameters.

◆ numNeighbours() [1/2]

int mrmeshpy.TriangulationParameters.numNeighbours ( self)
\\brief 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\\n
Too big value increases difficulty of optimization and decreases performance
<table border=0>
<caption id="TriangulationParameters::numNeighbours_examples"></caption>
<tr>
<td> \\image html triangulate/triangulate_3.png "Good" width = 350cm </td>
<td> \\image html triangulate/triangulate_2.png "Too small value" width = 350cm </td>
</tr>
</table>

Reimplemented from mrmeshpy.ConstTriangulationParameters.

◆ numNeighbours() [2/2]

None mrmeshpy.TriangulationParameters.numNeighbours ( self,
int arg1 )
\\brief 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\\n
Too big value increases difficulty of optimization and decreases performance
<table border=0>
<caption id="TriangulationParameters::numNeighbours_examples"></caption>
<tr>
<td> \\image html triangulate/triangulate_3.png "Good" width = 350cm </td>
<td> \\image html triangulate/triangulate_2.png "Too small value" width = 350cm </td>
</tr>
</table>

Reimplemented from mrmeshpy.ConstTriangulationParameters.

◆ radius() [1/2]

float mrmeshpy.TriangulationParameters.radius ( self)
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.

Reimplemented from mrmeshpy.ConstTriangulationParameters.

◆ radius() [2/2]

None mrmeshpy.TriangulationParameters.radius ( self,
float arg1 )
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.

Reimplemented from mrmeshpy.ConstTriangulationParameters.

◆ searchNeighbors() [1/2]

PointCloud mrmeshpy.TriangulationParameters.searchNeighbors ( self)
optional: if provided this cloud will be used for searching of neighbors (so it must have same validPoints)

Reimplemented from mrmeshpy.ConstTriangulationParameters.

◆ searchNeighbors() [2/2]

None mrmeshpy.TriangulationParameters.searchNeighbors ( self,
ConstPointCloud arg1 )
optional: if provided this cloud will be used for searching of neighbors (so it must have same validPoints)

Reimplemented from mrmeshpy.ConstTriangulationParameters.


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