mymesh.mesh.mesh.getCurvature#

mesh.getCurvature(metrics=['Max Principal', 'Min Principal', 'Curvedness', 'Shape Index', 'Mean', 'Gaussian'], nRings=1, SplitFeatures=False)[source]#

Calculate mesh-based curavature values using cubic surface fitting. See also mymesh.curvature.CubicFit().

Parameters:
  • metrics (list, optional) –

    List of curvature metrics to calculate. Options are:

    • ’Max Principal’ - Maxiumum principal curvature

    • ’Min Principal’ - Minimum principal curvature

    • ’Curvedness’ - Curvedness (see Curvedness, [KvD92])

    • ’Shape Index’ - Shape index (see Shape Index, [KvD92])

    • ’Mean’ - Mean curvauture

    • ’Gaussian’ - Gaussian curvature

    By default ['Max Principal','Min Principal', 'Curvedness', 'Shape Index', 'Mean', 'Gaussian'].

  • nRings (int, optional) – Number of neighborhood ‘rings’ about each node to use in calculating the curvature, by default 1

  • SplitFeatures (bool, optional) – If true, will split the mesh along feature edges (see mymesh.utils.DetectFeatures()) and calculate the curvature of each surface separately, by default False

Returns:

Curvature – Dictionary containing selected output curvature values.

Return type:

dict