Package toxi.geom
Class LocalGridTesselator
java.lang.Object
toxi.geom.GridTesselator
toxi.geom.LocalGridTesselator
- All Implemented Interfaces:
PolygonTesselator
A concrete implementation of the abstract
GridTesselator
using a grid
in polygon-local coordinate space for generating additional points within a
polygon. The resolution setting of this class defines number of desired grid
points in X & Y direction. E.g. a resolution of 10 means up to 10x10 grid
points are created a within the polygon bounding rect. For smaller polygons,
the resulting triangles will simply be smaller too. This resolution is used
independently on polygon size. Use the GlobalGridTesselator
for an
alternative behavior, resulting in more uniformly sized triangles.-
Constructor Summary
-
Method Summary
Methods inherited from class toxi.geom.GridTesselator
getResolution, setResolution, tesselatePolygon
-
Constructor Details
-
LocalGridTesselator
public LocalGridTesselator(int res)
-