Class CuttingPlanesUtils

java.lang.Object
cz.fidentis.analyst.engines.face.CuttingPlanesUtils

@Deprecated public final class CuttingPlanesUtils extends Object
Deprecated.
Utility functions for cutting planes. Have to be replaced with a manager component in the future.
  • Method Details

    • getConfigExport

      public static Map<String,Object> getConfigExport(Integer samplingStrength, javax.vecmath.Vector3d vectorDirection, List<CuttingPlanesUtils.CuttingPlaneConfig> cuttingPlaneConfigs)
      Deprecated.
      Returns a Map object containing current settings of cutting planes and parameters
      Parameters:
      samplingStrength - sampling strength to be used in computations
      vectorDirection - normal vector determining direction of cutting plane
      cuttingPlaneConfigs - plane configs with needed parameters
      Returns:
      Map object with settings of cutting planes and parameters
    • writeCurveExport

      public static void writeCurveExport(List<javax.vecmath.Point2d> points, PrintWriter writer)
      Deprecated.
      Writes information from points to given writer
      Parameters:
      points - data with 2D points
      writer - Points data will be written to writer
    • computeCrossSections

      public static List<List<CrossSection2D>> computeCrossSections(List<CuttingPlanesUtils.CrossSectionPlane> crossSectionPlanes, HumanFace primaryFace, HumanFace secondaryFace, Double featurePointCloseness)
      Deprecated.
      Computes cross-sections with all given visible planes
      Parameters:
      crossSectionPlanes - list of selected cutting planes to compute intersections with
      primaryFace - of task
      secondaryFace - of task
      featurePointCloseness - threshold for distance of feature points
      Returns:
      for each face returns list of curves
    • getHausdorffDistances

      public static List<Double> getHausdorffDistances(Integer samplingStrength, List<CrossSection2D> primaryCurves, List<CrossSection2D> secondaryCurves)
      Deprecated.
      Computes Hausdorff distances of all visible curves.
      Parameters:
      samplingStrength - sampling strength to be used in computations
      primaryCurves - cross-sections with primary face
      secondaryCurves - cross-sections with secondary face
      Returns:
      list with hausdorff distances or nulls
    • getBoundingBox2D

      public static CuttingPlanesUtils.BoundingBox2D getBoundingBox2D(Integer canvasWidth, Integer canvasHeight, Box faceBoundingBox, javax.vecmath.Vector3d currentCuttingPlaneNormal)
      Deprecated.
      Computes scale and offset based on bounding box of face and cutting plane direction so that currently projected curve fits the size of canvas.
      Parameters:
      canvasWidth - width size of canvas
      canvasHeight - height size of canvas
      faceBoundingBox - 3D bounding box of face
      currentCuttingPlaneNormal - normal of cutting plane determining direction
      Returns:
      2D bounding box with scale and offsets