Returns a FloatPolygon with all vertices of the flattened shape, i.e., the shape approximated by straight line segments. This method is for listing the coordinates and creating the convex hull. @param flatness Roughly the maximum allowable distance between the shape and the approximate polygon @p
(double flatness, boolean separateSubpaths, boolean addPointForClose, boolean absoluteCoord)
| 1119 | * Note that with <code>addPointForClose = false</code>, there is no distinction between open and closed subpaths. |
| 1120 | * @param absoluteCoord specifies whether the coordinates should be with respect to image bounds, not Roi bounds. */ |
| 1121 | public FloatPolygon getFloatPolygon(double flatness, boolean separateSubpaths, boolean addPointForClose, boolean absoluteCoord) { |
| 1122 | return getFloatPolygon(shape, flatness, separateSubpaths, addPointForClose, absoluteCoord); |
| 1123 | } |
| 1124 | |
| 1125 | public FloatPolygon getFloatPolygon(Shape shape, double flatness, boolean separateSubpaths, boolean addPointForClose, boolean absoluteCoord) { |
| 1126 | if (shape == null) return null; |
no test coverage detected