Package | Description |
---|---|
org.apache.commons.math3.geometry.euclidean.threed |
This package provides basic 3D geometry components.
|
Modifier and Type | Field and Description |
---|---|
private static Euclidean3D |
Euclidean3D.LazyHolder.INSTANCE
Cached field instance.
|
Modifier and Type | Method and Description |
---|---|
static Euclidean3D |
Euclidean3D.getInstance()
Get the unique instance.
|
Modifier and Type | Method and Description |
---|---|
EnclosingBall<Euclidean3D,Vector3D> |
SphereGenerator.ballOnSupport(java.util.List<Vector3D> support)
Create a ball whose boundary lies on prescribed support points.
|
private SubHyperplane<Euclidean3D> |
PolyhedronsSet.boundaryFacet(Vector3D point,
BSPTree<Euclidean3D> node)
Check if a point belongs to the boundary part of a node.
|
private static BSPTree<Euclidean3D> |
PolyhedronsSet.buildBoundary(double xMin,
double xMax,
double yMin,
double yMax,
double zMin,
double zMax,
double tolerance)
Build a parallellepipedic box boundary.
|
protected AbstractSubHyperplane<Euclidean3D,Euclidean2D> |
SubPlane.buildNew(Hyperplane<Euclidean3D> hyperplane,
Region<Euclidean2D> remainingRegion)
Build a sub-hyperplane from an hyperplane and a region.
|
SubHyperplane<Euclidean3D> |
PolyhedronsSet.firstIntersection(Vector3D point,
Line line)
Get the first sub-hyperplane crossed by a semi-infinite line.
|
Point<Euclidean3D> |
Plane.project(Point<Euclidean3D> point)
Project a point to the hyperplane.
|
private SubHyperplane<Euclidean3D> |
PolyhedronsSet.recurseFirstIntersection(BSPTree<Euclidean3D> node,
Vector3D point,
Line line)
Get the first sub-hyperplane crossed by a semi-infinite line.
|
SubHyperplane.SplitSubHyperplane<Euclidean3D> |
SubPlane.split(Hyperplane<Euclidean3D> hyperplane)
Split the instance in two parts by an hyperplane.
|
Modifier and Type | Method and Description |
---|---|
Vector3D |
Vector3D.add(double factor,
Vector<Euclidean3D> v)
Add a scaled vector to the instance.
|
Vector3D |
Vector3D.add(Vector<Euclidean3D> v)
Add a vector to the instance.
|
private void |
OutlineExtractor.BoundaryProjector.addContribution(SubHyperplane<Euclidean3D> facet,
boolean reversed)
Add he contribution of a boundary facet.
|
private void |
PolyhedronsSet.FacetsContributionVisitor.addContribution(SubHyperplane<Euclidean3D> facet,
boolean reversed)
Add he contribution of a boundary facet.
|
Plane |
PolyhedronsSet.RotationTransform.apply(Hyperplane<Euclidean3D> hyperplane)
Transform an hyperplane of a space.
|
Plane |
PolyhedronsSet.TranslationTransform.apply(Hyperplane<Euclidean3D> hyperplane)
Transform an hyperplane of a space.
|
Vector3D |
PolyhedronsSet.RotationTransform.apply(Point<Euclidean3D> point)
Transform a point of a space.
|
Vector3D |
PolyhedronsSet.TranslationTransform.apply(Point<Euclidean3D> point)
Transform a point of a space.
|
SubHyperplane<Euclidean2D> |
PolyhedronsSet.RotationTransform.apply(SubHyperplane<Euclidean2D> sub,
Hyperplane<Euclidean3D> original,
Hyperplane<Euclidean3D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.
|
SubHyperplane<Euclidean2D> |
PolyhedronsSet.RotationTransform.apply(SubHyperplane<Euclidean2D> sub,
Hyperplane<Euclidean3D> original,
Hyperplane<Euclidean3D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.
|
SubHyperplane<Euclidean2D> |
PolyhedronsSet.TranslationTransform.apply(SubHyperplane<Euclidean2D> sub,
Hyperplane<Euclidean3D> original,
Hyperplane<Euclidean3D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.
|
SubHyperplane<Euclidean2D> |
PolyhedronsSet.TranslationTransform.apply(SubHyperplane<Euclidean2D> sub,
Hyperplane<Euclidean3D> original,
Hyperplane<Euclidean3D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.
|
private SubHyperplane<Euclidean3D> |
PolyhedronsSet.boundaryFacet(Vector3D point,
BSPTree<Euclidean3D> node)
Check if a point belongs to the boundary part of a node.
|
PolyhedronsSet |
PolyhedronsSet.buildNew(BSPTree<Euclidean3D> tree)
Build a region using the instance as a prototype.
|
protected AbstractSubHyperplane<Euclidean3D,Euclidean2D> |
SubPlane.buildNew(Hyperplane<Euclidean3D> hyperplane,
Region<Euclidean2D> remainingRegion)
Build a sub-hyperplane from an hyperplane and a region.
|
Vector3D |
Vector3D.crossProduct(Vector<Euclidean3D> v)
Compute the cross-product of the instance with another vector.
|
double |
Vector3D.distance(Point<Euclidean3D> v)
Compute the distance between the instance and another point.
|
double |
Vector3D.distance(Vector<Euclidean3D> v)
Compute the distance between the instance and another vector according to the L2 norm.
|
double |
Vector3D.distance1(Vector<Euclidean3D> v)
Compute the distance between the instance and another vector according to the L1 norm.
|
double |
Vector3D.distanceInf(Vector<Euclidean3D> v)
Compute the distance between the instance and another vector according to the L∞ norm.
|
double |
Vector3D.distanceSq(Vector<Euclidean3D> v)
Compute the square of the distance between the instance and another vector.
|
double |
Vector3D.dotProduct(Vector<Euclidean3D> v)
Compute the dot-product of the instance and another vector.
|
java.lang.StringBuffer |
Vector3DFormat.format(Vector<Euclidean3D> vector,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Formats a
Vector3D object to produce a string. |
double |
Plane.getOffset(Point<Euclidean3D> point)
Get the offset (oriented distance) of a point.
|
double |
Plane.getOffset(Vector<Euclidean3D> vector)
Get the offset (oriented distance) of a vector.
|
Point<Euclidean3D> |
Plane.project(Point<Euclidean3D> point)
Project a point to the hyperplane.
|
private SubHyperplane<Euclidean3D> |
PolyhedronsSet.recurseFirstIntersection(BSPTree<Euclidean3D> node,
Vector3D point,
Line line)
Get the first sub-hyperplane crossed by a semi-infinite line.
|
boolean |
Plane.sameOrientationAs(Hyperplane<Euclidean3D> other)
Check if the instance has the same orientation as another hyperplane.
|
Side |
SubPlane.side(Hyperplane<Euclidean3D> hyperplane)
Compute the relative position of the instance with respect
to an hyperplane.
|
SubHyperplane.SplitSubHyperplane<Euclidean3D> |
SubPlane.split(Hyperplane<Euclidean3D> hyperplane)
Split the instance in two parts by an hyperplane.
|
Vector3D |
Vector3D.subtract(double factor,
Vector<Euclidean3D> v)
Subtract a scaled vector from the instance.
|
Vector3D |
Vector3D.subtract(Vector<Euclidean3D> v)
Subtract a vector from the instance.
|
Vector1D |
Line.toSubSpace(Point<Euclidean3D> point)
Transform a space point into a sub-space point.
|
Vector2D |
Plane.toSubSpace(Point<Euclidean3D> point)
Transform a 3D space point into an in-plane point.
|
Vector1D |
Line.toSubSpace(Vector<Euclidean3D> vector)
Transform a space point into a sub-space point.
|
Vector2D |
Plane.toSubSpace(Vector<Euclidean3D> vector)
Transform a space point into a sub-space point.
|
void |
OutlineExtractor.BoundaryProjector.visitInternalNode(BSPTree<Euclidean3D> node)
Visit a BSP tree node node having a non-null sub-hyperplane.
|
void |
PolyhedronsSet.FacetsContributionVisitor.visitInternalNode(BSPTree<Euclidean3D> node)
Visit a BSP tree node node having a non-null sub-hyperplane.
|
void |
OutlineExtractor.BoundaryProjector.visitLeafNode(BSPTree<Euclidean3D> node)
Visit a leaf BSP tree node node having a null sub-hyperplane.
|
void |
PolyhedronsSet.FacetsContributionVisitor.visitLeafNode(BSPTree<Euclidean3D> node)
Visit a leaf BSP tree node node having a null sub-hyperplane.
|
BSPTreeVisitor.Order |
OutlineExtractor.BoundaryProjector.visitOrder(BSPTree<Euclidean3D> node)
Determine the visit order for this node.
|
BSPTreeVisitor.Order |
PolyhedronsSet.FacetsContributionVisitor.visitOrder(BSPTree<Euclidean3D> node)
Determine the visit order for this node.
|
Constructor and Description |
---|
PolyhedronsSet(BSPTree<Euclidean3D> tree)
Deprecated.
as of 3.3, replaced with
PolyhedronsSet.PolyhedronsSet(BSPTree, double) |
PolyhedronsSet(BSPTree<Euclidean3D> tree,
double tolerance)
Build a polyhedrons set from a BSP tree.
|
PolyhedronsSet(java.util.Collection<SubHyperplane<Euclidean3D>> boundary)
Deprecated.
as of 3.3, replaced with
PolyhedronsSet.PolyhedronsSet(Collection, double) |
PolyhedronsSet(java.util.Collection<SubHyperplane<Euclidean3D>> boundary,
double tolerance)
Build a polyhedrons set from a Boundary REPresentation (B-rep).
|
SubPlane(Hyperplane<Euclidean3D> hyperplane,
Region<Euclidean2D> remainingRegion)
Simple constructor.
|