Generated from: MR::DecimateSettings \\struct MR::DecimateSettings \\brief Parameters structure for MR::decimateMesh \\sa \\ref decimateMesh
| mrmeshpy.ConstDecimateSettings.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstDecimateSettings) -> None 2. __init__(self: meshlib.mrmeshpy.ConstDecimateSettings, arg0: meshlib.mrmeshpy.ConstDecimateSettings) -> None Implicit copy constructor. 3. __init__(self: meshlib.mrmeshpy.ConstDecimateSettings, strategy: meshlib.mrmeshpy.DecimateStrategy, maxError: float, maxEdgeLen: float, maxBdShift: float, maxTriangleAspectRatio: float, criticalTriAspectRatio: float, preventNormalFlips: bool, tinyEdgeLength: float, stabilizer: float, angleWeightedDistToPlane: bool, optimizeVertexPos: bool, maxDeletedVertices: int, maxDeletedFaces: int, region: meshlib.mrmeshpy.FaceBitSet, notFlippable: meshlib.mrmeshpy.UndirectedEdgeBitSet, collapseNearNotFlippable: bool, edgesToCollapse: meshlib.mrmeshpy.UndirectedEdgeBitSet, twinMap: meshlib.mrmeshpy.phmap_flat_hash_map_Id_UndirectedEdgeTag_Id_UndirectedEdgeTag_phmap_Hash_Id_UndirectedEdgeTag_phmap_EqualTo_Id_UndirectedEdgeTag_Allocator_std_pair_Id_UndirectedEdgeTag_const_Id_UndirectedEdgeTag, touchNearBdEdges: bool, touchBdVerts: bool, bdVerts: meshlib.mrmeshpy.VertBitSet, regionEdges: meshlib.mrmeshpy.ConstUndirectedEdgeBitSet, maxAngleChange: float, preCollapse: meshlib.mrmeshpy.Const_func_bool_from_Id_EdgeTag_Vector3_float, adjustCollapse: meshlib.mrmeshpy.Const_func_void_from_Id_UndirectedEdgeTag_float_Vector3_float, onEdgeDel: meshlib.mrmeshpy.Const_func_void_from_Id_EdgeTag_Id_EdgeTag, vertForms: meshlib.mrmeshpy.Vector_QuadraticForm3f_VertId, packMesh: bool, progressCallback: meshlib.mrmeshpy.Const_func_bool_from_float, subdivideParts: int, partsMode: meshlib.mrmeshpy.DecimatePartsMode, decimateBetweenParts: bool, partFaces: meshlib.mrmeshpy.std_vector_TypedBitSet_Id_FaceTag, minFacesInPart: int) -> None Implicit aggregate constructor. 4. __init__(self: meshlib.mrmeshpy.ConstDecimateSettings, : meshlib.mrmeshpy.ConstDecimateSettings) -> None
| Const_func_void_from_Id_UndirectedEdgeTag_float_Vector3_float mrmeshpy.ConstDecimateSettings.adjustCollapse | ( | self | ) |
\\brief The user can provide this optional callback for adjusting error introduced by this edge collapse and the collapse position. \\details On input the callback gets the squared error and position computed by standard means, and callback can modify any of them. The larger the error, the later this edge will be collapsed. This callback can be called from many threads in parallel and must be thread-safe. This callback can be called many times for each edge before real collapsing, and it is important to make the same adjustment.
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| bool mrmeshpy.ConstDecimateSettings.angleWeightedDistToPlane | ( | self | ) |
if false, then quadratic error metric is equal to the sum of distances to the planes of original mesh triangles; if true, then the sum is weighted, and the weight is equal to the angle of adjacent triangle at the vertex divided on PI (to get one after summing all 3 vertices of the triangle)
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| VertBitSet mrmeshpy.ConstDecimateSettings.bdVerts | ( | self | ) |
if touchNearBdEdges=false or touchBdVerts=false then the algorithm needs to know about all boundary vertices; if the pointer is not null then boundary vertices detection is replaced with testing values in this bit-set; the algorithm updates this set if it packs the mesh
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| bool mrmeshpy.ConstDecimateSettings.collapseNearNotFlippable | ( | self | ) |
Whether to allow collapse of edges incident to notFlippable edges, which can move vertices of notFlippable edges unless they are fixed
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| float mrmeshpy.ConstDecimateSettings.criticalTriAspectRatio | ( | self | ) |
the algorithm will ignore dihedral angle check if one of triangles had aspect ratio equal or more than this value; and the algorithm will permit temporary increase in aspect ratio after collapse, if before collapse one of the triangles had larger aspect ratio
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| bool mrmeshpy.ConstDecimateSettings.decimateBetweenParts | ( | self | ) |
Whether to decimate near the borders of individual parts to eliminate small edges there: as soon as two sibling nodes in the binary tree of parts are decimated, their union is decimated in parallel with other nodes, and only the border between two halves of the mesh remains for the final decimation of whole mesh region
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| UndirectedEdgeBitSet mrmeshpy.ConstDecimateSettings.edgesToCollapse | ( | self | ) |
If pointer is not null, then only edges from here can be collapsed (and some nearby edges can disappear); the algorithm updates this map during collapses, removing or replacing elements
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| float mrmeshpy.ConstDecimateSettings.maxAngleChange | ( | self | ) |
Permit edge flips (in addition to collapsing) to improve Delone quality of the mesh if it does not change dihedral angle more than on this value (negative value prohibits any edge flips)
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| float mrmeshpy.ConstDecimateSettings.maxBdShift | ( | self | ) |
Maximal shift of a boundary during one edge collapse
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| int mrmeshpy.ConstDecimateSettings.maxDeletedFaces | ( | self | ) |
Limit on the number of deleted faces
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| int mrmeshpy.ConstDecimateSettings.maxDeletedVertices | ( | self | ) |
Limit on the number of deleted vertices
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| float mrmeshpy.ConstDecimateSettings.maxEdgeLen | ( | self | ) |
Maximal possible edge length created during decimation
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| float mrmeshpy.ConstDecimateSettings.maxError | ( | self | ) |
for DecimateStrategy::MinimizeError: stop the decimation as soon as the estimated distance deviation from the original mesh is more than this value for DecimateStrategy::ShortestEdgeFirst only: stop the decimation as soon as the shortest edge in the mesh is greater than this value
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| float mrmeshpy.ConstDecimateSettings.maxTriangleAspectRatio | ( | self | ) |
Maximal possible aspect ratio of a triangle introduced during decimation
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| int mrmeshpy.ConstDecimateSettings.minFacesInPart | ( | self | ) |
minimum number of faces in one subdivision part for ( subdivideParts > 1 ) mode
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| UndirectedEdgeBitSet mrmeshpy.ConstDecimateSettings.notFlippable | ( | self | ) |
Edges specified by this bit-set will never be flipped, but they can be collapsed or replaced during collapse of nearby edges so it is updated during the operation
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| Const_func_void_from_Id_EdgeTag_Id_EdgeTag mrmeshpy.ConstDecimateSettings.onEdgeDel | ( | self | ) |
this function is called each time edge (del) is deleted; if valid (rem) is given then dest(del) = dest(rem) and their origins are in different ends of collapsing edge, (rem) shall take the place of (del)
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| bool mrmeshpy.ConstDecimateSettings.optimizeVertexPos | ( | self | ) |
if true then after each edge collapse the position of remaining vertex is optimized to minimize local shape change, if false then the edge is collapsed in one of its vertices, which keeps its position
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| bool mrmeshpy.ConstDecimateSettings.packMesh | ( | self | ) |
whether to pack mesh at the end
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| std_vector_TypedBitSet_Id_FaceTag mrmeshpy.ConstDecimateSettings.partFaces | ( | self | ) |
if not null, then it contains the faces of each subdivision part on input, which must not overlap, and after decimation of all parts, the region inside each part is put here; decimateBetweenParts=true or packMesh=true are not compatible with this option
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| DecimatePartsMode mrmeshpy.ConstDecimateSettings.partsMode | ( | self | ) |
how the parts are found for subdivideParts > 1; ignored if partFaces is given
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| Const_func_bool_from_Id_EdgeTag_Vector3_float mrmeshpy.ConstDecimateSettings.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.DecimateSettings, and mrmeshpy.DecimateSettings.
| bool mrmeshpy.ConstDecimateSettings.preventNormalFlips | ( | self | ) |
whether to prohibit a collapse if it inverts the normal of a remaining triangle, or folds two triangles onto each other; turning it off (together with maxTriangleAspectRatio = FLT_MAX) makes decimation faster, but some triangles may appear inverted
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| Const_func_bool_from_float mrmeshpy.ConstDecimateSettings.progressCallback | ( | self | ) |
callback to report algorithm progress and cancel it by user request
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| FaceBitSet mrmeshpy.ConstDecimateSettings.region | ( | self | ) |
Region on mesh to be decimated, it is updated during the operation
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| UndirectedEdgeBitSet mrmeshpy.ConstDecimateSettings.regionEdges | ( | self | ) |
if region is not null and this pointer is not null, then it shall contain all edges incident to region faces (as returned by getIncidentEdges( topology, *region )), and the algorithm does not compute them itself
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| float mrmeshpy.ConstDecimateSettings.stabilizer | ( | self | ) |
Small stabilizer is important to achieve good results on completely planar mesh parts, if your mesh is not-planer everywhere, then you can set it to zero
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| DecimateStrategy mrmeshpy.ConstDecimateSettings.strategy | ( | self | ) |
| int mrmeshpy.ConstDecimateSettings.subdivideParts | ( | self | ) |
If this value is more than 1, then virtually subdivides the mesh on given number of parts to process them in parallel (using many threads); IMPORTANT: with default partsMode, please call mesh.packOptimally() before calling decimating with subdivideParts > 1, otherwise performance will be bad
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| float mrmeshpy.ConstDecimateSettings.tinyEdgeLength | ( | self | ) |
edges not longer than this value will be collapsed even if it results in appearance of a triangle with high aspect ratio
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| bool mrmeshpy.ConstDecimateSettings.touchBdVerts | ( | self | ) |
touchBdVerts=true: allow moving and eliminating boundary vertices during edge collapses; touchBdVerts=false: allow only collapsing an edge having only one boundary vertex in that vertex, so position and count of boundary vertices do not change; this setting is ignored if touchNearBdEdges=false
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| bool mrmeshpy.ConstDecimateSettings.touchNearBdEdges | ( | self | ) |
Whether to allow collapsing or flipping edges having at least one vertex on (region) boundary
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
if an edge present as a key in this map is flipped or collapsed, then same happens to the value-edge (with same collapse position); the algorithm updates this map during collapses, removing or replacing elements
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
| Vector_QuadraticForm3f_VertId mrmeshpy.ConstDecimateSettings.vertForms | ( | self | ) |
\\brief If not null, then vertex quadratic forms are stored there; if on input the vector is not empty then initialization is skipped in favor of values from there; on output: quadratic form for each remaining vertex is returned there
Reimplemented in mrmeshpy.DecimateSettings, and mrmeshpy.DecimateSettings.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |