Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| int | finalRelaxIters (self) |
| bool | finalRelaxNoShrinkage (self) |
| bool | frozenBoundary (self) |
| float | maxAngleChangeAfterFlip (self) |
| float | maxBdShift (self) |
| int | maxEdgeSplits (self) |
| float | maxSplittableTriAspectRatio (self) |
| UndirectedEdgeBitSet | notFlippable (self) |
| Const_func_void_from_Id_EdgeTag_Id_EdgeTag | onEdgeDel (self) |
| Const_func_void_from_Id_EdgeTag_Id_EdgeTag | onEdgeSplit (self) |
| bool | packMesh (self) |
| Const_func_bool_from_Id_EdgeTag_Vector3_float | preCollapse (self) |
| Const_func_bool_from_float | progressCallback (self) |
| bool | projectOnOriginalMesh (self) |
| FaceBitSet | region (self) |
| float | targetEdgeLen (self) |
| bool | useCurvature (self) |
Static Protected Attributes | |
| typing | _offsetof_finalRelaxIters = 28 |
| typing | _offsetof_finalRelaxNoShrinkage = 32 |
| typing | _offsetof_frozenBoundary = 12 |
| typing | _offsetof_maxAngleChangeAfterFlip = 8 |
| typing | _offsetof_maxBdShift = 16 |
| typing | _offsetof_maxEdgeSplits = 4 |
| typing | _offsetof_maxSplittableTriAspectRatio = 24 |
| typing | _offsetof_notFlippable = 48 |
| typing | _offsetof_onEdgeDel = 96 |
| typing | _offsetof_onEdgeSplit = 64 |
| typing | _offsetof_packMesh = 56 |
| typing | _offsetof_preCollapse = 128 |
| typing | _offsetof_progressCallback = 160 |
| typing | _offsetof_projectOnOriginalMesh = 57 |
| typing | _offsetof_region = 40 |
| typing | _offsetof_targetEdgeLen = 0 |
| typing | _offsetof_useCurvature = 20 |
Generated from: MR::RemeshSettings
| mrmeshpy.ConstRemeshSettings.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstRemeshSettings) -> None 2. __init__(self: meshlib.mrmeshpy.ConstRemeshSettings, arg0: meshlib.mrmeshpy.ConstRemeshSettings) -> None Implicit copy constructor. 3. __init__(self: meshlib.mrmeshpy.ConstRemeshSettings, targetEdgeLen: float, maxEdgeSplits: int, maxAngleChangeAfterFlip: float, frozenBoundary: bool, maxBdShift: float, useCurvature: bool, maxSplittableTriAspectRatio: float, finalRelaxIters: int, finalRelaxNoShrinkage: bool, region: meshlib.mrmeshpy.FaceBitSet, notFlippable: meshlib.mrmeshpy.UndirectedEdgeBitSet, packMesh: bool, projectOnOriginalMesh: bool, onEdgeSplit: meshlib.mrmeshpy.Const_func_void_from_Id_EdgeTag_Id_EdgeTag, onEdgeDel: meshlib.mrmeshpy.Const_func_void_from_Id_EdgeTag_Id_EdgeTag, preCollapse: meshlib.mrmeshpy.Const_func_bool_from_Id_EdgeTag_Vector3_float, progressCallback: meshlib.mrmeshpy.Const_func_bool_from_float) -> None Implicit aggregate constructor. 4. __init__(self: meshlib.mrmeshpy.ConstRemeshSettings, : meshlib.mrmeshpy.ConstRemeshSettings) -> None
| int mrmeshpy.ConstRemeshSettings.finalRelaxIters | ( | self | ) |
the number of iterations of final relaxation of mesh vertices; few iterations can give almost perfect uniformity of the vertices and edge lengths but deviate from the original surface
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| bool mrmeshpy.ConstRemeshSettings.finalRelaxNoShrinkage | ( | self | ) |
if true prevents the surface from shrinkage after many iterations
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| bool mrmeshpy.ConstRemeshSettings.frozenBoundary | ( | self | ) |
Allows or prohibits splitting and/or collapse boundary edges it recommended to keep default value here for better quality
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| float mrmeshpy.ConstRemeshSettings.maxAngleChangeAfterFlip | ( | self | ) |
Improves local mesh triangulation by doing edge flips if it does not change dihedral angle more than on this value
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| float mrmeshpy.ConstRemeshSettings.maxBdShift | ( | self | ) |
Maximal shift of a boundary during one edge collapse only makes sense if `frozenBoundary=false`
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| int mrmeshpy.ConstRemeshSettings.maxEdgeSplits | ( | self | ) |
Maximum number of edge splits allowed during subdivision
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| float mrmeshpy.ConstRemeshSettings.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 frozenBoundary==true, otherwise many narrow triangles can appear near border
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| UndirectedEdgeBitSet mrmeshpy.ConstRemeshSettings.notFlippable | ( | self | ) |
Edges specified by this bit-set will never be flipped or collapsed, but they can be replaced during collapse of nearby edges so it is updated during the operation; also the vertices incident to these edges are excluded from relaxation
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| Const_func_void_from_Id_EdgeTag_Id_EdgeTag mrmeshpy.ConstRemeshSettings.onEdgeDel | ( | self | ) |
if valid (e1) is given then dest(e) = dest(e1) and their origins are in different ends of collapsing edge, e1 shall take the place of e
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| Const_func_void_from_Id_EdgeTag_Id_EdgeTag mrmeshpy.ConstRemeshSettings.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.RemeshSettings, and mrmeshpy.RemeshSettings.
| bool mrmeshpy.ConstRemeshSettings.packMesh | ( | self | ) |
whether to pack mesh at the end
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| Const_func_bool_from_Id_EdgeTag_Vector3_float mrmeshpy.ConstRemeshSettings.preCollapse | ( | self | ) |
\\brief The user can provide this optional callback that is invoked immediately before edge collapse; \\details It receives the edge being collapsed: its destination vertex will disappear, and its origin vertex will get new position (provided as the second argument) after collapse; If the callback returns false, then the collapse is prohibited
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| Const_func_bool_from_float mrmeshpy.ConstRemeshSettings.progressCallback | ( | self | ) |
callback to report algorithm progress and cancel it by user request
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| bool mrmeshpy.ConstRemeshSettings.projectOnOriginalMesh | ( | self | ) |
if true, then every new vertex after subdivision will be projected on the original mesh (before smoothing); this does not affect the vertices moved on other stages of the processing
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| FaceBitSet mrmeshpy.ConstRemeshSettings.region | ( | self | ) |
Region on mesh to be changed, it is updated during the operation
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| float mrmeshpy.ConstRemeshSettings.targetEdgeLen | ( | self | ) |
the algorithm will try to keep the length of all edges close to this value, splitting the edges longer than targetEdgeLen, and then eliminating the edges shorter than targetEdgeLen
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
| bool mrmeshpy.ConstRemeshSettings.useCurvature | ( | self | ) |
This option in subdivision works best for natural surfaces, where all triangles are close to equilateral and have similar area, and no sharp edges in between
Reimplemented in mrmeshpy.RemeshSettings, and mrmeshpy.RemeshSettings.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |