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

Public Member Functions

None __init__ (self)
None __init__ (self, ConstSubdivideSettings arg0)
None __init__ (self, float maxEdgeLen, float curvaturePriority, int maxEdgeSplits, float maxDeviationAfterFlip, float maxAngleChangeAfterFlip, float criticalAspectRatioFlip, FaceBitSet region, FaceBitSet maintainRegion, UndirectedEdgeBitSet notFlippable, bool onlyNearNotFlippable, VertBitSet newVerts, bool subdivideBorder, float maxTriAspectRatio, float maxSplittableTriAspectRatio, bool smoothMode, float minSharpDihedralAngle, bool projectOnOriginalMesh, Const_func_bool_from_Id_EdgeTag beforeEdgeSplit, Const_func_void_from_Id_VertTag onVertCreated, Const_func_void_from_Id_EdgeTag_Id_EdgeTag onEdgeSplit, Const_func_bool_from_float progressCallback)
SubdivideSettings assign (self, ConstSubdivideSettings other)
func_bool_from_Id_EdgeTag beforeEdgeSplit (self)
None beforeEdgeSplit (self, Const_func_bool_from_Id_EdgeTag arg1)
float criticalAspectRatioFlip (self)
None criticalAspectRatioFlip (self, float arg1)
float curvaturePriority (self)
None curvaturePriority (self, float arg1)
FaceBitSet maintainRegion (self)
None maintainRegion (self, FaceBitSet arg1)
float maxAngleChangeAfterFlip (self)
None maxAngleChangeAfterFlip (self, float arg1)
float maxDeviationAfterFlip (self)
None maxDeviationAfterFlip (self, float arg1)
float maxEdgeLen (self)
None maxEdgeLen (self, float arg1)
int maxEdgeSplits (self)
None maxEdgeSplits (self, int arg1)
float maxSplittableTriAspectRatio (self)
None maxSplittableTriAspectRatio (self, float arg1)
float maxTriAspectRatio (self)
None maxTriAspectRatio (self, float arg1)
float minSharpDihedralAngle (self)
None minSharpDihedralAngle (self, float arg1)
VertBitSet newVerts (self)
None newVerts (self, VertBitSet arg1)
UndirectedEdgeBitSet notFlippable (self)
None notFlippable (self, UndirectedEdgeBitSet arg1)
func_void_from_Id_EdgeTag_Id_EdgeTag onEdgeSplit (self)
None onEdgeSplit (self, Const_func_void_from_Id_EdgeTag_Id_EdgeTag arg1)
func_void_from_Id_VertTag onVertCreated (self)
None onVertCreated (self, Const_func_void_from_Id_VertTag arg1)
bool onlyNearNotFlippable (self)
None onlyNearNotFlippable (self, bool arg1)
func_bool_from_float progressCallback (self)
None progressCallback (self, Const_func_bool_from_float arg1)
bool projectOnOriginalMesh (self)
None projectOnOriginalMesh (self, bool arg1)
FaceBitSet region (self)
None region (self, FaceBitSet arg1)
bool smoothMode (self)
None smoothMode (self, bool arg1)
bool subdivideBorder (self)
None subdivideBorder (self, bool arg1)
Public Member Functions inherited from mrmeshpy.ConstSubdivideSettings
 __init__ (self, *args, **kwargs)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstSubdivideSettings
typing _offsetof_beforeEdgeSplit = 88
typing _offsetof_criticalAspectRatioFlip = 20
typing _offsetof_curvaturePriority = 4
typing _offsetof_maintainRegion = 32
typing _offsetof_maxAngleChangeAfterFlip = 16
typing _offsetof_maxDeviationAfterFlip = 12
typing _offsetof_maxEdgeLen = 0
typing _offsetof_maxEdgeSplits = 8
typing _offsetof_maxSplittableTriAspectRatio = 72
typing _offsetof_maxTriAspectRatio = 68
typing _offsetof_minSharpDihedralAngle = 80
typing _offsetof_newVerts = 56
typing _offsetof_notFlippable = 40
typing _offsetof_onEdgeSplit = 152
typing _offsetof_onVertCreated = 120
typing _offsetof_onlyNearNotFlippable = 48
typing _offsetof_progressCallback = 184
typing _offsetof_projectOnOriginalMesh = 84
typing _offsetof_region = 24
typing _offsetof_smoothMode = 76
typing _offsetof_subdivideBorder = 64

Detailed Description

Generated from:  MR::SubdivideSettings

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

◆ __init__() [2/4]

None mrmeshpy.SubdivideSettings.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.SubdivideSettings.__init__ ( self,
ConstSubdivideSettings arg0 )
Implicit copy constructor.

◆ __init__() [4/4]

None mrmeshpy.SubdivideSettings.__init__ ( self,
float maxEdgeLen,
float curvaturePriority,
int maxEdgeSplits,
float maxDeviationAfterFlip,
float maxAngleChangeAfterFlip,
float criticalAspectRatioFlip,
FaceBitSet region,
FaceBitSet maintainRegion,
UndirectedEdgeBitSet notFlippable,
bool onlyNearNotFlippable,
VertBitSet newVerts,
bool subdivideBorder,
float maxTriAspectRatio,
float maxSplittableTriAspectRatio,
bool smoothMode,
float minSharpDihedralAngle,
bool projectOnOriginalMesh,
Const_func_bool_from_Id_EdgeTag beforeEdgeSplit,
Const_func_void_from_Id_VertTag onVertCreated,
Const_func_void_from_Id_EdgeTag_Id_EdgeTag onEdgeSplit,
Const_func_bool_from_float progressCallback )
Implicit aggregate constructor.

Member Function Documentation

◆ assign()

SubdivideSettings mrmeshpy.SubdivideSettings.assign ( self,
ConstSubdivideSettings other )

◆ beforeEdgeSplit() [1/2]

func_bool_from_Id_EdgeTag mrmeshpy.SubdivideSettings.beforeEdgeSplit ( self)
this function is called each time edge (e) is going to split, if it returns false then this split will be skipped

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ beforeEdgeSplit() [2/2]

None mrmeshpy.SubdivideSettings.beforeEdgeSplit ( self,
Const_func_bool_from_Id_EdgeTag arg1 )
this function is called each time edge (e) is going to split, if it returns false then this split will be skipped

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ criticalAspectRatioFlip() [1/2]

float mrmeshpy.SubdivideSettings.criticalAspectRatioFlip ( self)
If this value is less than FLT_MAX then edge flips will
ignore dihedral angle check if one of triangles has aspect ratio more than this value
Unit: rad

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ criticalAspectRatioFlip() [2/2]

None mrmeshpy.SubdivideSettings.criticalAspectRatioFlip ( self,
float arg1 )
If this value is less than FLT_MAX then edge flips will
ignore dihedral angle check if one of triangles has aspect ratio more than this value
Unit: rad

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ curvaturePriority() [1/2]

float mrmeshpy.SubdivideSettings.curvaturePriority ( self)
edge length will be magnified by the squared difference of normals at edge's ends times this factor,
thus subdivision will be finer in the regions of high curvature compared to planar regions

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ curvaturePriority() [2/2]

None mrmeshpy.SubdivideSettings.curvaturePriority ( self,
float arg1 )
edge length will be magnified by the squared difference of normals at edge's ends times this factor,
thus subdivision will be finer in the regions of high curvature compared to planar regions

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maintainRegion() [1/2]

FaceBitSet mrmeshpy.SubdivideSettings.maintainRegion ( self)
Additional region to update during subdivision: if a face from here is split, it is replaced with new sub-faces;
note that Subdivide can split faces even outside of main \\p region, so it might be necessary to update another region

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maintainRegion() [2/2]

None mrmeshpy.SubdivideSettings.maintainRegion ( self,
FaceBitSet arg1 )
Additional region to update during subdivision: if a face from here is split, it is replaced with new sub-faces;
note that Subdivide can split faces even outside of main \\p region, so it might be necessary to update another region

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maxAngleChangeAfterFlip() [1/2]

float mrmeshpy.SubdivideSettings.maxAngleChangeAfterFlip ( self)
Improves local mesh triangulation by doing edge flips if it does not change dihedral angle more than on this value (in radians)

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maxAngleChangeAfterFlip() [2/2]

None mrmeshpy.SubdivideSettings.maxAngleChangeAfterFlip ( self,
float arg1 )
Improves local mesh triangulation by doing edge flips if it does not change dihedral angle more than on this value (in radians)

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maxDeviationAfterFlip() [1/2]

float mrmeshpy.SubdivideSettings.maxDeviationAfterFlip ( self)
Improves local mesh triangulation by doing edge flips if it does not make too big surface deviation

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maxDeviationAfterFlip() [2/2]

None mrmeshpy.SubdivideSettings.maxDeviationAfterFlip ( self,
float arg1 )
Improves local mesh triangulation by doing edge flips if it does not make too big surface deviation

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maxEdgeLen() [1/2]

float mrmeshpy.SubdivideSettings.maxEdgeLen ( self)
Subdivision is stopped when all edges inside or on the boundary of the region are not longer than this value

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maxEdgeLen() [2/2]

None mrmeshpy.SubdivideSettings.maxEdgeLen ( self,
float arg1 )
Subdivision is stopped when all edges inside or on the boundary of the region are not longer than this value

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maxEdgeSplits() [1/2]

int mrmeshpy.SubdivideSettings.maxEdgeSplits ( self)
Maximum number of edge splits allowed

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maxEdgeSplits() [2/2]

None mrmeshpy.SubdivideSettings.maxEdgeSplits ( self,
int arg1 )
Maximum number of edge splits allowed

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maxSplittableTriAspectRatio() [1/2]

float mrmeshpy.SubdivideSettings.maxSplittableTriAspectRatio ( self)
An edge is subdivided only if both its left and right triangles have aspect ratio below or equal to this value.
So this is a maximum aspect ratio of a triangle that can be split on two before Delone optimization.
Please set it to a smaller value only if subdivideBorder==false, otherwise many narrow triangles can appear near border

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maxSplittableTriAspectRatio() [2/2]

None mrmeshpy.SubdivideSettings.maxSplittableTriAspectRatio ( self,
float arg1 )
An edge is subdivided only if both its left and right triangles have aspect ratio below or equal to this value.
So this is a maximum aspect ratio of a triangle that can be split on two before Delone optimization.
Please set it to a smaller value only if subdivideBorder==false, otherwise many narrow triangles can appear near border

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maxTriAspectRatio() [1/2]

float mrmeshpy.SubdivideSettings.maxTriAspectRatio ( self)
The subdivision stops as soon as all triangles (in the region) have aspect ratio below or equal to this value

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ maxTriAspectRatio() [2/2]

None mrmeshpy.SubdivideSettings.maxTriAspectRatio ( self,
float arg1 )
The subdivision stops as soon as all triangles (in the region) have aspect ratio below or equal to this value

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ minSharpDihedralAngle() [1/2]

float mrmeshpy.SubdivideSettings.minSharpDihedralAngle ( self)
30 degrees

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ minSharpDihedralAngle() [2/2]

None mrmeshpy.SubdivideSettings.minSharpDihedralAngle ( self,
float arg1 )
30 degrees

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ newVerts() [1/2]

VertBitSet mrmeshpy.SubdivideSettings.newVerts ( self)
New vertices appeared during subdivision will be added here

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ newVerts() [2/2]

None mrmeshpy.SubdivideSettings.newVerts ( self,
VertBitSet arg1 )
New vertices appeared during subdivision will be added here

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ notFlippable() [1/2]

UndirectedEdgeBitSet mrmeshpy.SubdivideSettings.notFlippable ( self)
Edges specified by this bit-set will never be flipped, but they can be split so it is updated during the operation

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ notFlippable() [2/2]

None mrmeshpy.SubdivideSettings.notFlippable ( self,
UndirectedEdgeBitSet arg1 )
Edges specified by this bit-set will never be flipped, but they can be split so it is updated during the operation

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ onEdgeSplit() [1/2]

func_void_from_Id_EdgeTag_Id_EdgeTag mrmeshpy.SubdivideSettings.onEdgeSplit ( self)
this function is called each time edge (e) is split into (e1->e), but before the ring is made Delone

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ onEdgeSplit() [2/2]

None mrmeshpy.SubdivideSettings.onEdgeSplit ( self,
Const_func_void_from_Id_EdgeTag_Id_EdgeTag arg1 )
this function is called each time edge (e) is split into (e1->e), but before the ring is made Delone

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ onlyNearNotFlippable() [1/2]

bool mrmeshpy.SubdivideSettings.onlyNearNotFlippable ( self)
If true, then only the edges having a vertex of their left or right triangle incident to a \\ref notFlippable edge can be split,
so subdivision is localized near notFlippable edges; \\ref notFlippable must not be null then (nothing is split in release otherwise)

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ onlyNearNotFlippable() [2/2]

None mrmeshpy.SubdivideSettings.onlyNearNotFlippable ( self,
bool arg1 )
If true, then only the edges having a vertex of their left or right triangle incident to a \\ref notFlippable edge can be split,
so subdivision is localized near notFlippable edges; \\ref notFlippable must not be null then (nothing is split in release otherwise)

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ onVertCreated() [1/2]

func_void_from_Id_VertTag mrmeshpy.SubdivideSettings.onVertCreated ( self)
this function is called each time a new vertex has been created, but before the ring is made Delone

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ onVertCreated() [2/2]

None mrmeshpy.SubdivideSettings.onVertCreated ( self,
Const_func_void_from_Id_VertTag arg1 )
this function is called each time a new vertex has been created, but before the ring is made Delone

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ progressCallback() [1/2]

func_bool_from_float mrmeshpy.SubdivideSettings.progressCallback ( self)
callback to report algorithm progress and cancel it by user request

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ progressCallback() [2/2]

None mrmeshpy.SubdivideSettings.progressCallback ( self,
Const_func_bool_from_float arg1 )
callback to report algorithm progress and cancel it by user request

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ projectOnOriginalMesh() [1/2]

bool mrmeshpy.SubdivideSettings.projectOnOriginalMesh ( self)
if true, then every new vertex will be projected on the original mesh (before smoothing)

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ projectOnOriginalMesh() [2/2]

None mrmeshpy.SubdivideSettings.projectOnOriginalMesh ( self,
bool arg1 )
if true, then every new vertex will be projected on the original mesh (before smoothing)

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ region() [1/2]

FaceBitSet mrmeshpy.SubdivideSettings.region ( self)
Region on mesh to be subdivided, it is updated during the operation

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ region() [2/2]

None mrmeshpy.SubdivideSettings.region ( self,
FaceBitSet arg1 )
Region on mesh to be subdivided, it is updated during the operation

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ smoothMode() [1/2]

bool mrmeshpy.SubdivideSettings.smoothMode ( self)
Puts new vertices so that they form a smooth surface together with existing vertices.
This option works best for natural surfaces without sharp edges in between triangles

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ smoothMode() [2/2]

None mrmeshpy.SubdivideSettings.smoothMode ( self,
bool arg1 )
Puts new vertices so that they form a smooth surface together with existing vertices.
This option works best for natural surfaces without sharp edges in between triangles

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ subdivideBorder() [1/2]

bool mrmeshpy.SubdivideSettings.subdivideBorder ( self)
If false do not touch border edges (cannot subdivide lone faces)\\n
use \\ref MR::findRegionOuterFaces to find boundary faces

Reimplemented from mrmeshpy.ConstSubdivideSettings.

◆ subdivideBorder() [2/2]

None mrmeshpy.SubdivideSettings.subdivideBorder ( self,
bool arg1 )
If false do not touch border edges (cannot subdivide lone faces)\\n
use \\ref MR::findRegionOuterFaces to find boundary faces

Reimplemented from mrmeshpy.ConstSubdivideSettings.


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