Class SierpinskiCarpetBuilder
java.lang.Object
org.locationtech.jts.shape.GeometricShapeBuilder
org.locationtech.jts.shape.fractal.SierpinskiCarpetBuilder
-
Field Summary
FieldsFields inherited from class org.locationtech.jts.shape.GeometricShapeBuilder
extent, geomFactory, numPts
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private LinearRing
createSquareHole
(double x, double y, double width) private LinearRing[]
getHoles
(int n, double originX, double originY, double width) static int
recursionLevelForSize
(int numPts) Methods inherited from class org.locationtech.jts.shape.GeometricShapeBuilder
createCoord, getCentre, getDiameter, getExtent, getRadius, getSquareBaseLine, getSquareExtent, setExtent, setNumPoints
-
Field Details
-
coordList
-
-
Constructor Details
-
SierpinskiCarpetBuilder
-
-
Method Details
-
recursionLevelForSize
public static int recursionLevelForSize(int numPts) -
getGeometry
- Specified by:
getGeometry
in classGeometricShapeBuilder
-
getHoles
-
addHoles
-
createSquareHole
-