This chapter represents documentation about mesh decimation. More...
Classes | |
| struct | MR::DecimateSettings |
| Parameters structure for MR::decimateMesh. More... | |
| struct | MR::DecimateResult |
| Results of MR::decimateMesh. More... | |
| struct | MR::DecimatePolylineSettings< V > |
| Parameters structure for MR::decimatePolyline. More... | |
Functions | |
| MRMESH_API DecimateResult | MR::decimateMesh (Mesh &mesh, const DecimateSettings &settings={}) |
| Performs mesh simplification in mesh region according to the settings. | |
| MRMESH_API QuadraticForm3f | MR::computeFormAtVertex (const MeshPart &mp, VertId v, float stabilizer, bool angleWeigted, const UndirectedEdgeBitSet *creases=nullptr) |
| Computes quadratic form at given vertex of the initial surface before decimation. | |
| MRMESH_API Vector< QuadraticForm3f, VertId > | MR::computeFormsAtVertices (const MeshPart &mp, float stabilizer, bool angleWeigted, const UndirectedEdgeBitSet *creases=nullptr) |
| Computes quadratic forms at every vertex of mesh part before decimation. | |
| MRMESH_API FaceBitSet | MR::getSubdividePart (const FaceBitSet &valids, size_t subdivideParts, size_t myPart) |
| returns given subdivision part of all valid faces; parallel threads shall be able to safely modify these bits because they do not share any block with other parts | |
| MRMESH_API bool | MR::resolveMeshDegenerations (Mesh &mesh, const ResolveMeshDegenSettings &settings={}) |
| Removes degenerate triangles in a mesh by calling decimateMesh function with appropriate settings. | |
| MRMESH_API DecimatePolylineResult | MR::decimatePolyline (Polyline2 &polyline, const DecimatePolylineSettings2 &settings={}) |
| Collapse edges in the polyline according to the settings. | |
| MRMESH_API DecimatePolylineResult | MR::decimateContour (Contour2f &contour, const DecimatePolylineSettings2 &settings={}) |
| Collapse edges in the contour according to the settings. | |
This chapter represents documentation about mesh decimation.
|
nodiscard |
#include <MRMeshDecimate.h>
Computes quadratic form at given vertex of the initial surface before decimation.
|
nodiscard |
#include <MRMeshDecimate.h>
Computes quadratic forms at every vertex of mesh part before decimation.
| MRMESH_API DecimatePolylineResult MR::decimateContour | ( | Contour2f & | contour, |
| const DecimatePolylineSettings2 & | settings = {} ) |
#include <MRPolylineDecimate.h>
Collapse edges in the contour according to the settings.
| MRMESH_API DecimateResult MR::decimateMesh | ( | Mesh & | mesh, |
| const DecimateSettings & | settings = {} ) |
#include <MRMeshDecimate.h>
Performs mesh simplification in mesh region according to the settings.
| MRMESH_API DecimatePolylineResult MR::decimatePolyline | ( | Polyline2 & | polyline, |
| const DecimatePolylineSettings2 & | settings = {} ) |
#include <MRPolylineDecimate.h>
Collapse edges in the polyline according to the settings.
|
nodiscard |
#include <MRMeshDecimate.h>
returns given subdivision part of all valid faces; parallel threads shall be able to safely modify these bits because they do not share any block with other parts
| MRMESH_API bool MR::resolveMeshDegenerations | ( | Mesh & | mesh, |
| const ResolveMeshDegenSettings & | settings = {} ) |
#include <MRMeshDecimate.h>
Removes degenerate triangles in a mesh by calling decimateMesh function with appropriate settings.
consider using fixMeshDegeneracies for more complex cases