mymesh.curvature.AnalyticalCurvature#
- mymesh.curvature.AnalyticalCurvature(func, NodeCoords)[source]#
Calculate curvature of an implicit function. Curvature is sampled at the provided list of node coordinates, which should lie on the surface of an isosurface of the function. Based on Curvature formulas for implicit curves and surfaces, Ron Goldman (2005). [Gol05]
- Parameters:
func (function) – Sympy symbolic function of three arguments (x,y,z)
NodeCoords (list, np.ndarray) – List of node coordinates for evaluating the curvature.
- Returns:
MaxPrincipal (np.ndarray) – List of maximum principal curvatures for each node.
MinPrincipal (np.ndarray) – List of minimum principal curvatures for each node.
gaussian (np.ndarray) – List of Gaussian curvatures for each node.
mean (np.ndarray) – List of mean curvatures.