Uses of Class
com.github.micycle1.clipper2.core.PathsD
Packages that use PathsD
Package
Description
Clipper2 is an open source freeware library that performs line and polygon
clipping, and offsetting.
The Clipper64 and ClipperD classes in this unit encapsulate all the logic
that performs path clipping.
-
Uses of PathsD in com.github.micycle1.clipper2
Methods in com.github.micycle1.clipper2 that return PathsDModifier and TypeMethodDescriptionstatic PathsDClipper.booleanOp(ClipType clipType, PathsD subject, @Nullable PathsD clip, FillRule fillRule, int precision) This function is a generic alternative to the Intersect, Difference, Union and XOR functions.static PathsDApplies the requested boolean operation to floating-point subject and clip paths using the default precision.static PathsDstatic PathsDstatic PathsDClipper.difference(PathsD subject, PathsD clip, FillRule fillRule) Subtracts the clip paths from the subject paths using the default precision.static PathsDClipper.difference(PathsD subject, PathsD clip, FillRule fillRule, int precision) Subtracts the clip paths from the subject paths.static PathsDClipper.inflatePaths(PathsD paths, double delta, JoinType joinType, EndType endType) Inflates or shrinks floating-point paths with default settings.static PathsDClipper.inflatePaths(PathsD paths, double delta, JoinType joinType, EndType endType, double miterLimit) Inflates or shrinks floating-point paths with a custom miter limit.static PathsDClipper.inflatePaths(PathsD paths, double delta, JoinType joinType, EndType endType, double miterLimit, double arcTolerance, int precision) These functions encapsulateClipperOffset, the class that performs both polygon and open path offsetting.static PathsDIntersects two sets of floating-point paths using the default precision.static PathsDIntersects two sets of floating-point paths.static PathsDClipper.minkowskiDiff(PathD pattern, PathD path, boolean isClosed) static PathsDClipper.minkowskiSum(PathD pattern, PathD path, boolean isClosed) static PathsDstatic PathsDClipper.polyTreeToPathsD(PolyTreeD polyTree) static PathsDClipper.ramerDouglasPeucker(PathsD paths, double epsilon) Simplifies floating-point paths using the Ramer-Douglas-Peucker algorithm.static PathsDstatic PathsDstatic PathsDstatic PathsDstatic PathsDClipper.rectClipLines(RectD rect, PathD path) static PathsDClipper.rectClipLines(RectD rect, PathD path, int precision) static PathsDClipper.rectClipLines(RectD rect, PathsD paths) static PathsDClipper.rectClipLines(RectD rect, PathsD paths, int precision) static PathsDClipper.reversePaths(PathsD paths) static PathsDClipper.scalePaths(PathsD paths, double scale) static PathsDClipper.scalePathsD(Paths64 paths, double scale) static PathsDClipper.simplifyPaths(PathsD paths, double epsilon) Simplifies multiple floating-point paths assuming open paths by default.static PathsDClipper.simplifyPaths(PathsD paths, double epsilon, boolean isClosedPath) Simplifies multiple floating-point paths.static PathsDstatic PathsDstatic PathsDClipper.translatePaths(PathsD paths, double dx, double dy) static PathsDUnites the supplied floating-point subject paths using the default precision.static PathsDUnites two sets of floating-point paths using the default precision.static PathsDUnites two sets of floating-point paths.static PathsDComputes the exclusive-or of two sets of floating-point paths using the default precision.static PathsDComputes the exclusive-or of two sets of floating-point paths.Methods in com.github.micycle1.clipper2 with parameters of type PathsDModifier and TypeMethodDescriptionstatic voidClipper.addPolyNodeToPathsD(PolyPathD polyPath, PathsD paths) Flattens a floating-point polytree into a path collection.static doubleReturns the combined signed area of the supplied floating-point polygons.static voidClipper.booleanOp(ClipType clipType, @Nullable PathsD subject, @Nullable PathsD clip, PolyTreeD polytree, FillRule fillRule) Applies the requested boolean operation to floating-point paths and stores the result in aPolyTreeDusing the default precision.static voidClipper.booleanOp(ClipType clipType, @Nullable PathsD subject, @Nullable PathsD clip, PolyTreeD polytree, FillRule fillRule, int precision) Applies the requested boolean operation to floating-point paths and stores the result in aPolyTreeD.static PathsDClipper.booleanOp(ClipType clipType, PathsD subject, @Nullable PathsD clip, FillRule fillRule, int precision) This function is a generic alternative to the Intersect, Difference, Union and XOR functions.static PathsDApplies the requested boolean operation to floating-point subject and clip paths using the default precision.static PathsDClipper.difference(PathsD subject, PathsD clip, FillRule fillRule) Subtracts the clip paths from the subject paths using the default precision.static PathsDClipper.difference(PathsD subject, PathsD clip, FillRule fillRule, int precision) Subtracts the clip paths from the subject paths.static RectDReturns the bounds of multiple floating-point paths.static PathsDClipper.inflatePaths(PathsD paths, double delta, JoinType joinType, EndType endType) Inflates or shrinks floating-point paths with default settings.static PathsDClipper.inflatePaths(PathsD paths, double delta, JoinType joinType, EndType endType, double miterLimit) Inflates or shrinks floating-point paths with a custom miter limit.static PathsDClipper.inflatePaths(PathsD paths, double delta, JoinType joinType, EndType endType, double miterLimit, double arcTolerance, int precision) These functions encapsulateClipperOffset, the class that performs both polygon and open path offsetting.static PathsDIntersects two sets of floating-point paths using the default precision.static PathsDIntersects two sets of floating-point paths.static Paths64static StringClipper.pathsDToString(PathsD paths) static PathsDClipper.ramerDouglasPeucker(PathsD paths, double epsilon) Simplifies floating-point paths using the Ramer-Douglas-Peucker algorithm.static PathsDstatic PathsDstatic PathsDClipper.rectClipLines(RectD rect, PathsD paths) static PathsDClipper.rectClipLines(RectD rect, PathsD paths, int precision) static PathsDClipper.reversePaths(PathsD paths) static PathsDClipper.scalePaths(PathsD paths, double scale) static Paths64Clipper.scalePaths64(PathsD paths, double scale) static PathsDClipper.simplifyPaths(PathsD paths, double epsilon) Simplifies multiple floating-point paths assuming open paths by default.static PathsDClipper.simplifyPaths(PathsD paths, double epsilon, boolean isClosedPath) Simplifies multiple floating-point paths.static PathsDClipper.translatePaths(PathsD paths, double dx, double dy) static PathsDUnites the supplied floating-point subject paths using the default precision.static PathsDUnites two sets of floating-point paths using the default precision.static PathsDUnites two sets of floating-point paths.static PathsDComputes the exclusive-or of two sets of floating-point paths using the default precision.static PathsDComputes the exclusive-or of two sets of floating-point paths. -
Uses of PathsD in com.github.micycle1.clipper2.engine
Methods in com.github.micycle1.clipper2.engine with parameters of type PathsDModifier and TypeMethodDescriptionvoidAdds multiple clip paths.voidClipperD.addOpenSubjects(PathsD paths) Adds multiple open subject paths.voidAdds multiple closed paths as either subject or clip input.voidAdds multiple paths as either subject or clip input.voidClipperD.addSubjects(PathsD paths) Adds multiple closed subject paths.booleanExecutes the requested clipping operation and returns only closed solution paths.booleanExecutes the requested clipping operation and returns closed and open results as scaledPathsDcollections.booleanExecutes the requested clipping operation and writes the nested closed-path result to aPolyTreeD.