Package | Description |
---|---|
org.apache.commons.geometry.euclidean.threed |
This package provides basic 3D geometry components.
|
org.apache.commons.geometry.euclidean.twod |
This package provides basic 2D geometry components.
|
org.apache.commons.geometry.euclidean.twod.path |
This package provides classes for working with connected sequences of
line segments and other line subsets.
|
Modifier and Type | Method and Description |
---|---|
static List<PlaneConvexSubset> |
Planes.extrude(LinePath path,
EmbeddingPlane plane,
Vector3D extrusionVector,
Precision.DoubleEquivalence precision)
Get the boundaries of the 3D region created by extruding a 2D line path.
|
Modifier and Type | Method and Description |
---|---|
List<LinePath> |
ConvexArea.getBoundaryPaths()
Get the connected line subset paths comprising the boundary of the area.
|
List<LinePath> |
RegionBSPTree2D.getBoundaryPaths()
Get the boundary of the region as a list of connected line subset paths.
|
Modifier and Type | Method and Description |
---|---|
static ConvexArea |
ConvexArea.convexPolygonFromPath(LinePath path)
Construct a convex polygon from a line path.
|
Modifier and Type | Method and Description |
---|---|
LinePath |
LinePath.Builder.build()
Build a
LinePath instance from the configured path. |
LinePath |
LinePath.Builder.build(boolean close)
Build a
LinePath instance from the configured path. |
LinePath |
LinePath.Builder.close()
Close the current path and build a new
LinePath instance. |
static LinePath |
LinePath.empty()
Return a path containing no elements.
|
static LinePath |
LinePath.from(Collection<? extends LineConvexSubset> subsets)
Build a new path from the given line subsets.
|
static LinePath |
LinePath.from(LineConvexSubset... subsets)
Build a new path from the given line subsets.
|
static LinePath |
LinePath.fromVertexLoop(Collection<Vector2D> vertices,
Precision.DoubleEquivalence precision)
Build a new path from the given vertices.
|
static LinePath |
LinePath.fromVertices(Collection<Vector2D> vertices,
boolean close,
Precision.DoubleEquivalence precision)
Build a new path from the given vertices.
|
static LinePath |
LinePath.fromVertices(Collection<Vector2D> vertices,
Precision.DoubleEquivalence precision)
Build a new path from the given vertices.
|
LinePath |
LinePath.reverse()
Return a new instance with all line subset directions, and their order,
reversed.
|
LinePath |
LinePath.simplify()
Simplify this path, if possible, by combining adjacent elements that lie on the
same line (as determined by
Line.equals(Object) ). |
LinePath |
LinePath.transform(Transform<Vector2D> transform)
Transform this instance with the argument, returning the result in a new instance.
|
Modifier and Type | Method and Description |
---|---|
List<LinePath> |
AbstractLinePathConnector.connectAll()
Connect all current line subsets into connected paths, returning the result as a
list of line paths.
|
List<LinePath> |
AbstractLinePathConnector.connectAll(Iterable<LineConvexSubset> subsets)
Add the given line subsets to this instance and connect all current
subsets into connected paths.
|
static List<LinePath> |
InteriorAngleLinePathConnector.connectMaximized(Collection<LineConvexSubset> subsets)
Convenience method for connecting a collection of line subsets with interior angles
maximized when possible.
|
static List<LinePath> |
InteriorAngleLinePathConnector.connectMinimized(Collection<LineConvexSubset> subsets)
Convenience method for connecting a collection of line subsets with interior angles minimized
when possible.
|
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.