SubHyperplane.
sub-hyperplanes are obtained when parts of an hyperplane are chopped off by other hyperplanes that
intersect it. The remaining part is a convex region. Such objects
appear in BSP trees as the intersection of a cut
hyperplane with the convex region which it splits, the chopping
hyperplanes are the cut hyperplanes closer to the tree root.
| Modifier and Type | Field and Description |
|---|---|
| private final Hyperplane | hyperplane
Underlying hyperplane. |
| private final Region | remainingRegion
Remaining region of the hyperplane. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractSubHyperplane(final Hyperplane<S>
underlying hyperplane hyperplane, final Region<T> remaining region of the hyperplane remainingRegion)Build a sub-hyperplane from an hyperplane and a region. |
| Modifier and Type | Method and Description |
|---|---|
| public AbstractSubHyperplane | Returns: the transformed instanceD-dimension transform to apply transform)Apply a transform to the instance. |
| protected abstract AbstractSubHyperplane | Returns: a new sub-hyperplaneunderlying hyperplane hyper, final Region<T> remaining region of the hyperplane remaining)Build a sub-hyperplane from an hyperplane and a region. |
| public AbstractSubHyperplane | copySelf()
Implements org. Copy the instance. |
| public Hyperplane | Returns: underlying hyperplaneImplements org. Get the underlying hyperplane. |
| public Region | Returns: remaining region of the hyperplaneGet the remaining region of the hyperplane. |
| public double | getSize()
Implements org. Get the size of the instance. |
| public boolean | isEmpty()
Implements org. Check if the instance is empty. |
| private BSPTree | Returns: a new treecurrent BSP tree node node, final Hyperplane<S> image of the instance hyperplane by the transform transformed, final Transform<S, T> transform to apply transform, final Map<BSPTree<T>, BSPTree<T>> transformed nodes map map)Recursively transform a BSP-tree from a sub-hyperplane. |
| public AbstractSubHyperplane | reunite(final SubHyperplane<S>
other sub-hyperplane to union (must be in the
same hyperplane as the instance) other)Implements org. Compute the union of the instance and another sub-hyperplane. |
| public Side | side(Hyperplane<S>
hyperplane to check instance against hyper)Implements org.
Deprecated
Compute the relative position of the instance with respect to an hyperplane. |
| public abstract SubHyperplane. | split(Hyperplane<S>
splitting hyperplane hyper)Redeclares org. Split the instance in two parts by an hyperplane. |
| hyperplane | back to summary |
|---|---|
| private final Hyperplane<S> hyperplane Underlying hyperplane. | |
| remainingRegion | back to summary |
|---|---|
| private final Region<T> remainingRegion Remaining region of the hyperplane. | |
| AbstractSubHyperplane | back to summary |
|---|---|
| protected AbstractSubHyperplane(final Hyperplane<S> hyperplane, final Region<T> remainingRegion) Build a sub-hyperplane from an hyperplane and a region.
| |
| applyTransform | back to summary |
|---|---|
| public AbstractSubHyperplane Apply a transform to the instance. The instance must be a (D-1)-dimension sub-hyperplane with respect to the transform not a (D-2)-dimension sub-hyperplane the transform knows how to transform by itself. The transform will consist in transforming first the hyperplane and then the all region using the various methods provided by the transform.
| |
| buildNew | back to summary |
|---|---|
| protected abstract AbstractSubHyperplane Build a sub-hyperplane from an hyperplane and a region.
| |
| copySelf | back to summary |
|---|---|
| public AbstractSubHyperplane Implements org. Doc from org. Copy the instance. The instance created is completely independent of the original one. A deep copy is used, none of the underlying objects are shared (except for the nodes attributes and immutable objects).
| |
| getHyperplane | back to summary |
|---|---|
| public Hyperplane Implements org. Get the underlying hyperplane.
| |
| getRemainingRegion | back to summary |
|---|---|
| public Region Get the remaining region of the hyperplane. The returned region is expressed in the canonical hyperplane frame and has the hyperplane dimension. For example a chopped hyperplane in the 3D euclidean is a 2D plane and the corresponding region is a convex 2D polygon.
| |
| getSize | back to summary |
|---|---|
| public double getSize() Implements org. Doc from org. Get the size of the instance.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements org. Doc from org. Check if the instance is empty.
| |
| recurseTransform | back to summary |
|---|---|
| private BSPTree Recursively transform a BSP-tree from a sub-hyperplane. | |
| reunite | back to summary |
|---|---|
| public AbstractSubHyperplane Implements org. Doc from org. Compute the union of the instance and another sub-hyperplane.
| |
| side | back to summary |
|---|---|
| public Side side(Hyperplane<S> hyper) Implements org. Doc from org. Deprecated
Compute the relative position of the instance with respect to an hyperplane.
| |
| split | back to summary |
|---|---|
| public abstract SubHyperplane. Redeclares org. Doc from org. Split the instance in two parts by an hyperplane.
| |