Interface CurvatureServices


public interface CurvatureServices
Stateless services for curvature calculation. It is a wrapper to the stateful implementation in CurvatureVisitor.
  • Method Details

    • computeAndSet

      static void computeAndSet(MeshModel mesh, CurvatureConfig config)
      Sets curvature to visited mesh vertices.
      Parameters:
      mesh - Mesh model to be inspected
      config - Configuration of the service
    • computeAndSet

      static void computeAndSet(MeshFacet mesh, CurvatureConfig config)
      Sets curvature to visited mesh vertices.
      Parameters:
      mesh - Mesh facet to be inspected
      config - Configuration of the service
    • computeAndSet

      static void computeAndSet(Collection<MeshFacet> mesh, CurvatureConfig config)
      Sets curvature to visited mesh vertices.
      Parameters:
      mesh - Mesh facets to be inspected
      config - Configuration of the service
    • compute

      static Curvature compute(MeshPoint point, Collection<MeshFacet> facets)
      Calculates principal curvatures and principal directions of a single point lying on a mesh surface
      Parameters:
      point - Point on a surface
      facets - Mesh surface
      Returns:
      curvature
    • compute

      static Curvature compute(MeshPoint point, MeshFacet facet)
      Calculates principal curvatures and principal directions of a single point lying on a mesh surface
      Parameters:
      point - Point on a surface
      facet - Mesh surface
      Returns:
      curvature
    • compute

      static Curvature compute(MeshPoint point, MeshModel mesh)
      Calculates principal curvatures and principal directions of a single point lying on a mesh surface
      Parameters:
      point - Point on a surface
      mesh - Mesh surface
      Returns:
      curvature