Analysis mesh curvature statistics.
Constructors
Finalizer
Properties
Get the average deviation of "finite" values.
public CurvatureStyle CurvatureStyle { get; }
Gets the curvature style of the curvature statistics.
Curvature values greater than or equal to this are considered infinite and not used to compute the average of "finite" values or the average deviation of "finite" values.
Gets the minumum and maximum curvature based on the value of CurvatureStyle: If CurvatureStyle.GaussianCurvature, the min Gaussian curvature and the max Gaussian curvature. If CurvatureStyle.MeanCurvature, the min unsigned mean curvature and the max unsigned mean curvature. If CurvatureStyle.MinimumCurvature, the min maximum unsigned radius of curvature and the max maximum unsigned radius of curvature. If CurvatureStyle.MaximumCurvature, the min minimum unsigned radius of curvature and the the max minimum unsigned radius of curvature.
Methods
Gets curvature statistics from analysis mesh.
Parameters:
| analysisMesh (Mesh) | The analysis mesh. |
| curvatureStyle (CurvatureStyle) | The curvature style. |
Returns: The curvature statistics.
Exceptions:
| NullReferenceException |
public static MeshCurvatureStats CreateFromMeshes(IEnumerable<Mesh> analysisMeshes, CurvatureStyle curvatureStyle)
Gets curvature statistics from analysis meshes, and calculate total statistics.
Remarks: The meshes must carry principal curvatures. Set MeshingParameters.ComputeCurvature before meshing, or use Brep.CreateCurvatureAnalysisMesh. Meshes without them are skipped, and if none of them have any, the result is a zero range with Count 0 rather than an error. Mesh.HasPrincipalCurvatures reports whether a mesh qualifies.
Parameters:
| analysisMeshes (IEnumerable<Mesh>) | An enumeration of analysis meshes. |
| curvatureStyle (CurvatureStyle) | The curvature style. |
Returns: The curvature statistics.
Exceptions:
| ArgumentNullException |