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 |
Generated from: MR::SubdivideSettings
| 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
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| int mrmeshpy.ConstSubdivideSettings.maxEdgeSplits | ( | self | ) |
Maximum number of edge splits allowed
Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.
| 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.
| 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.
| float mrmeshpy.ConstSubdivideSettings.minSharpDihedralAngle | ( | self | ) |
30 degrees
Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.
| VertBitSet mrmeshpy.ConstSubdivideSettings.newVerts | ( | self | ) |
New vertices appeared during subdivision will be added here
Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| FaceBitSet mrmeshpy.ConstSubdivideSettings.region | ( | self | ) |
Region on mesh to be subdivided, it is updated during the operation
Reimplemented in mrmeshpy.SubdivideSettings, and mrmeshpy.SubdivideSettings.
| 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.
| 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.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |