MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.TriangulationParameters Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, int numNeighbours, float radius, float critAngle, float boundaryAngle, float critHoleLength, bool automaticRadiusIncrease, PointCloud searchNeighbors)
 
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, PointCloud arg1)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
TriangulationParameters operator (*args, **kwargs)
 
TriangulationParameters operator (*args, **kwargs)
 

Static Protected Attributes

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
 \\ingroup PointCloudTriangulationGroup

 \\sa \\ref triangulatePointCloud

Constructor & Destructor Documentation

◆ __init__() [1/3]

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

◆ __init__() [2/3]

None mrmeshpy.TriangulationParameters.__init__ ( self)

◆ __init__() [3/3]

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

Member Function Documentation

◆ automaticRadiusIncrease() [1/2]

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

◆ automaticRadiusIncrease() [2/2]

None mrmeshpy.TriangulationParameters.automaticRadiusIncrease ( self,
bool arg1 )

◆ boundaryAngle() [1/2]

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

◆ boundaryAngle() [2/2]

None mrmeshpy.TriangulationParameters.boundaryAngle ( self,
float arg1 )

◆ 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>

◆ critAngle() [2/2]

None mrmeshpy.TriangulationParameters.critAngle ( self,
float arg1 )

◆ critHoleLength() [1/2]

float mrmeshpy.TriangulationParameters.critHoleLength ( self)
 \\brief Critical length of hole (all holes with length less then this value will be filled)
 \\details If value is subzero it is set automaticly to 0.7*bbox.diagonal()

◆ critHoleLength() [2/2]

None mrmeshpy.TriangulationParameters.critHoleLength ( self,
float arg1 )

◆ 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>

◆ numNeighbours() [2/2]

None mrmeshpy.TriangulationParameters.numNeighbours ( self,
int arg1 )

◆ operator() [1/2]

TriangulationParameters mrmeshpy.TriangulationParameters.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

TriangulationParameters mrmeshpy.TriangulationParameters.operator ( * args,
** kwargs )
static

◆ 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.

◆ radius() [2/2]

None mrmeshpy.TriangulationParameters.radius ( self,
float arg1 )

◆ 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)

◆ searchNeighbors() [2/2]

None mrmeshpy.TriangulationParameters.searchNeighbors ( self,
PointCloud arg1 )

Member Data Documentation

◆ _offsetof_automaticRadiusIncrease

typing mrmeshpy.TriangulationParameters._offsetof_automaticRadiusIncrease = 20
staticprotected

◆ _offsetof_boundaryAngle

typing mrmeshpy.TriangulationParameters._offsetof_boundaryAngle = 12
staticprotected

◆ _offsetof_critAngle

typing mrmeshpy.TriangulationParameters._offsetof_critAngle = 8
staticprotected

◆ _offsetof_critHoleLength

typing mrmeshpy.TriangulationParameters._offsetof_critHoleLength = 16
staticprotected

◆ _offsetof_numNeighbours

typing mrmeshpy.TriangulationParameters._offsetof_numNeighbours = 0
staticprotected

◆ _offsetof_radius

typing mrmeshpy.TriangulationParameters._offsetof_radius = 4
staticprotected

◆ _offsetof_searchNeighbors

typing mrmeshpy.TriangulationParameters._offsetof_searchNeighbors = 24
staticprotected

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