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

Public Member Functions

 __init__ (self, *args, **kwargs)
Const_func_bool_from_Id_EdgeTag beforeEdgeSplit (self)
float criticalAspectRatioFlip (self)
float curvaturePriority (self)
FaceBitSet maintainRegion (self)
float maxAngleChangeAfterFlip (self)
float maxDeviationAfterFlip (self)
float maxEdgeLen (self)
int maxEdgeSplits (self)
float maxSplittableTriAspectRatio (self)
float maxTriAspectRatio (self)
float minSharpDihedralAngle (self)
VertBitSet newVerts (self)
UndirectedEdgeBitSet notFlippable (self)
Const_func_void_from_Id_EdgeTag_Id_EdgeTag onEdgeSplit (self)
Const_func_void_from_Id_VertTag onVertCreated (self)
bool onlyNearNotFlippable (self)
Const_func_bool_from_float progressCallback (self)
bool projectOnOriginalMesh (self)
FaceBitSet region (self)
bool smoothMode (self)
bool subdivideBorder (self)

Static Protected Attributes

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

mrmeshpy.ConstSubdivideSettings.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstSubdivideSettings) -> None

2. __init__(self: meshlib.mrmeshpy.ConstSubdivideSettings, arg0: meshlib.mrmeshpy.ConstSubdivideSettings) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstSubdivideSettings, maxEdgeLen: float, curvaturePriority: float, maxEdgeSplits: int, maxDeviationAfterFlip: float, maxAngleChangeAfterFlip: float, criticalAspectRatioFlip: float, region: meshlib.mrmeshpy.FaceBitSet, maintainRegion: meshlib.mrmeshpy.FaceBitSet, notFlippable: meshlib.mrmeshpy.UndirectedEdgeBitSet, onlyNearNotFlippable: bool, newVerts: meshlib.mrmeshpy.VertBitSet, subdivideBorder: bool, maxTriAspectRatio: float, maxSplittableTriAspectRatio: float, smoothMode: bool, minSharpDihedralAngle: float, projectOnOriginalMesh: bool, beforeEdgeSplit: meshlib.mrmeshpy.Const_func_bool_from_Id_EdgeTag, onVertCreated: meshlib.mrmeshpy.Const_func_void_from_Id_VertTag, onEdgeSplit: meshlib.mrmeshpy.Const_func_void_from_Id_EdgeTag_Id_EdgeTag, progressCallback: meshlib.mrmeshpy.Const_func_bool_from_float) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstSubdivideSettings, : meshlib.mrmeshpy.ConstSubdivideSettings) -> None

Member Function Documentation

◆ beforeEdgeSplit()

Const_func_bool_from_Id_EdgeTag mrmeshpy.ConstSubdivideSettings.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 in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ criticalAspectRatioFlip()

float mrmeshpy.ConstSubdivideSettings.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 in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ curvaturePriority()

float mrmeshpy.ConstSubdivideSettings.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 in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ maintainRegion()

FaceBitSet mrmeshpy.ConstSubdivideSettings.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 in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ maxAngleChangeAfterFlip()

float mrmeshpy.ConstSubdivideSettings.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 in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ maxDeviationAfterFlip()

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

Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ maxEdgeLen()

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

Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ maxEdgeSplits()

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

Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ maxSplittableTriAspectRatio()

float mrmeshpy.ConstSubdivideSettings.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 in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ maxTriAspectRatio()

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

Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ minSharpDihedralAngle()

float mrmeshpy.ConstSubdivideSettings.minSharpDihedralAngle ( self)
30 degrees

Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ newVerts()

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

Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ notFlippable()

UndirectedEdgeBitSet mrmeshpy.ConstSubdivideSettings.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 in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ onEdgeSplit()

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

Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ onlyNearNotFlippable()

bool mrmeshpy.ConstSubdivideSettings.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 in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ onVertCreated()

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

Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ progressCallback()

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

Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ projectOnOriginalMesh()

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

Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ region()

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

Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ smoothMode()

bool mrmeshpy.ConstSubdivideSettings.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 in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

◆ subdivideBorder()

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

Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.

Member Data Documentation

◆ _offsetof_beforeEdgeSplit

typing mrmeshpy.ConstSubdivideSettings._offsetof_beforeEdgeSplit = 88
staticprotected

◆ _offsetof_criticalAspectRatioFlip

typing mrmeshpy.ConstSubdivideSettings._offsetof_criticalAspectRatioFlip = 20
staticprotected

◆ _offsetof_curvaturePriority

typing mrmeshpy.ConstSubdivideSettings._offsetof_curvaturePriority = 4
staticprotected

◆ _offsetof_maintainRegion

typing mrmeshpy.ConstSubdivideSettings._offsetof_maintainRegion = 32
staticprotected

◆ _offsetof_maxAngleChangeAfterFlip

typing mrmeshpy.ConstSubdivideSettings._offsetof_maxAngleChangeAfterFlip = 16
staticprotected

◆ _offsetof_maxDeviationAfterFlip

typing mrmeshpy.ConstSubdivideSettings._offsetof_maxDeviationAfterFlip = 12
staticprotected

◆ _offsetof_maxEdgeLen

typing mrmeshpy.ConstSubdivideSettings._offsetof_maxEdgeLen = 0
staticprotected

◆ _offsetof_maxEdgeSplits

typing mrmeshpy.ConstSubdivideSettings._offsetof_maxEdgeSplits = 8
staticprotected

◆ _offsetof_maxSplittableTriAspectRatio

typing mrmeshpy.ConstSubdivideSettings._offsetof_maxSplittableTriAspectRatio = 72
staticprotected

◆ _offsetof_maxTriAspectRatio

typing mrmeshpy.ConstSubdivideSettings._offsetof_maxTriAspectRatio = 68
staticprotected

◆ _offsetof_minSharpDihedralAngle

typing mrmeshpy.ConstSubdivideSettings._offsetof_minSharpDihedralAngle = 80
staticprotected

◆ _offsetof_newVerts

typing mrmeshpy.ConstSubdivideSettings._offsetof_newVerts = 56
staticprotected

◆ _offsetof_notFlippable

typing mrmeshpy.ConstSubdivideSettings._offsetof_notFlippable = 40
staticprotected

◆ _offsetof_onEdgeSplit

typing mrmeshpy.ConstSubdivideSettings._offsetof_onEdgeSplit = 152
staticprotected

◆ _offsetof_onlyNearNotFlippable

typing mrmeshpy.ConstSubdivideSettings._offsetof_onlyNearNotFlippable = 48
staticprotected

◆ _offsetof_onVertCreated

typing mrmeshpy.ConstSubdivideSettings._offsetof_onVertCreated = 120
staticprotected

◆ _offsetof_progressCallback

typing mrmeshpy.ConstSubdivideSettings._offsetof_progressCallback = 184
staticprotected

◆ _offsetof_projectOnOriginalMesh

typing mrmeshpy.ConstSubdivideSettings._offsetof_projectOnOriginalMesh = 84
staticprotected

◆ _offsetof_region

typing mrmeshpy.ConstSubdivideSettings._offsetof_region = 24
staticprotected

◆ _offsetof_smoothMode

typing mrmeshpy.ConstSubdivideSettings._offsetof_smoothMode = 76
staticprotected

◆ _offsetof_subdivideBorder

typing mrmeshpy.ConstSubdivideSettings._offsetof_subdivideBorder = 64
staticprotected

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