Package cz.fidentis.analyst.engines.face
Class CuttingPlanesUtils
java.lang.Object
cz.fidentis.analyst.engines.face.CuttingPlanesUtils
Deprecated.
Utility functions for cutting planes. Have to be replaced with a manager component in the future.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Deprecated.static final record
Deprecated.static final record
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<List<CrossSection2D>> computeCrossSections
(List<CuttingPlanesUtils.CrossSectionPlane> crossSectionPlanes, HumanFace primaryFace, HumanFace secondaryFace, Double featurePointCloseness) Deprecated.Computes cross-sections with all given visible planesgetBoundingBox2D
(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.getConfigExport
(Integer samplingStrength, javax.vecmath.Vector3d vectorDirection, List<CuttingPlanesUtils.CuttingPlaneConfig> cuttingPlaneConfigs) Deprecated.Returns a Map object containing current settings of cutting planes and parametersgetHausdorffDistances
(Integer samplingStrength, List<CrossSection2D> primaryCurves, List<CrossSection2D> secondaryCurves) Deprecated.Computes Hausdorff distances of all visible curves.static void
writeCurveExport
(List<javax.vecmath.Point2d> points, PrintWriter writer) Deprecated.Writes information from points to given writer
-
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 computationsvectorDirection
- normal vector determining direction of cutting planecuttingPlaneConfigs
- plane configs with needed parameters- Returns:
- Map object with settings of cutting planes and parameters
-
writeCurveExport
Deprecated.Writes information from points to given writer- Parameters:
points
- data with 2D pointswriter
- 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 withprimaryFace
- of tasksecondaryFace
- of taskfeaturePointCloseness
- 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 computationsprimaryCurves
- cross-sections with primary facesecondaryCurves
- 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 canvascanvasHeight
- height size of canvasfaceBoundingBox
- 3D bounding box of facecurrentCuttingPlaneNormal
- normal of cutting plane determining direction- Returns:
- 2D bounding box with scale and offsets
-