Documentation
¶
Index ¶
- func Destructure(ctx context.Context, cmp pkgcmp.Compare, clipbox *geom.Extent, ...) ([]geom.Line, error)
- func InsideTrianglesForMultiPolygon(ctx context.Context, clipbox *geom.Extent, multipolygon *geom.MultiPolygon, ...) ([]geom.Triangle, error)
- func InsideTrianglesForSegments(ctx context.Context, segs []geom.Line, hm planar.HitMapper) ([]geom.Triangle, error)
- type ByXYLine
- type ByXYPoint
- type Makevalid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Destructure ¶
func Destructure(ctx context.Context, cmp pkgcmp.Compare, clipbox *geom.Extent, multipolygon *geom.MultiPolygon) ([]geom.Line, error)
Destructure will take a multipolygon, break up the polygon into a set of segments that have the following characteristics: 1. no segment will intersect with another segment, other then at the end points; or colinear and partial-coliner lines. 2. normalize direction of line segments to left to right 3. line segments are generally unique. 4. line segments outside of the clipbox will be clipped
func InsideTrianglesForMultiPolygon ¶
func InsideTrianglesForMultiPolygon(ctx context.Context, clipbox *geom.Extent, multipolygon *geom.MultiPolygon, hm planar.HitMapper) ([]geom.Triangle, error)
InsideTrianglesForMultiPolygon returns triangles that are painted as inside triangles for the multipolygon
Types ¶
type Makevalid ¶
type Makevalid struct { Hitmap planar.HitMapper // Currently not used, but once we have the IsValid function, we can use this instead // Of running the MakeValid routine on a Geometry that is already valid. // Used to clip geometries that are not Polygon and MultiPolygons Clipper planar.Clipper CMP pkgcmp.Compare Order winding.Order }
Click to show internal directories.
Click to hide internal directories.