Class SurfaceFeatures
Defined in File SurfaceFeatures.h
Class Documentation
-
class SurfaceFeatures
Detect and mark feature edges based on boundary or dihedral angle.
Public Functions
-
SurfaceFeatures(SurfaceMesh &mesh)
Construct with mesh to be analyzed.
Adds two
boolproperties to the mesh if they are not already existing:"e:feature"to mark feature edges"v:feature"to mark feature vertices.
Note
The class never removes the marker properties so that other algorithms can re-use this information. Cleaning up the properties when they are no longer needed is the responsibility of the caller.
-
void clear()
Clear feature and boundary edges.
Sets all
"e:feature"and"v:feature"properties tofalse.Note
This does not remove the corresponding property arrays.
-
size_t detect_boundary()
Mark all boundary edges as features.
- Returns:
The number of boudary edges detected.
-
size_t detect_angle(Scalar angle)
Mark edges with dihedral angle larger than
angleas feature.- Returns:
The number of feature edges detected.
-
SurfaceFeatures(SurfaceMesh &mesh)