3-D box geometry. More...
#include <Core/Geometry/Box3.h>
Classes | |
class | Builder |
Front-end to create Box3 objects step by step. More... | |
Public Member Functions | |
Box3 (const Transform3 &transform=Transform3(), bool isNormalFlipped=false) | |
Constructs (0, 0, 0) x (1, 1, 1) box. More... | |
Box3 (const Vector3D &lowerCorner, const Vector3D &upperCorner, const Transform3 &transform=Transform3(), bool isNormalFlipped=false) | |
Constructs a box with given lowerCorner and upperCorner . More... | |
Box3 (const BoundingBox3D &boundingBox, const Transform3 &transform=Transform3(), bool isNormalFlipped=false) | |
Constructs a box with BoundingBox3D instance. More... | |
Box3 (const Box3 &other) | |
Copy constructor. More... | |
Public Member Functions inherited from CubbyFlow::Surface3 | |
Surface3 (const Transform3 &transform=Transform3(), bool isNormalFlipped=false) | |
Constructs a surface with normal direction. More... | |
Surface3 (const Surface3 &other) | |
Copy constructor. More... | |
virtual | ~Surface3 () |
Default destructor. More... | |
Vector3D | ClosestPoint (const Vector3D &otherPoint) const |
Returns the closest point from the given point otherPoint to the surface. More... | |
BoundingBox3D | BoundingBox () const |
Returns the bounding box of this surface object. More... | |
bool | Intersects (const Ray3D &ray) const |
Returns true if the given ray intersects with this surface object. More... | |
double | ClosestDistance (const Vector3D &otherPoint) const |
SurfaceRayIntersection3 | ClosestIntersection (const Ray3D &ray) const |
Returns the closest intersection point for given ray . More... | |
Vector3D | ClosestNormal (const Vector3D &otherPoint) const |
virtual void | UpdateQueryEngine () |
Updates internal spatial query engine. More... | |
Static Public Member Functions | |
static Builder | GetBuilder () |
Returns builder fox Box3. More... | |
Public Attributes | |
BoundingBox3D | bound = BoundingBox3D(Vector3D(), Vector3D(1.0, 1.0, 1.0)) |
Bounding box of this box. More... | |
Public Attributes inherited from CubbyFlow::Surface3 | |
Transform3 | transform |
Local-to-world transform. More... | |
bool | isNormalFlipped = false |
Flips normal when calling Surface3::closestNormal(...). More... | |
Protected Member Functions | |
Vector3D | ClosestPointLocal (const Vector3D &otherPoint) const override |
bool | IntersectsLocal (const Ray3D &ray) const override |
BoundingBox3D | BoundingBoxLocal () const override |
Returns the bounding box of this surface object in local frame. More... | |
Vector3D | ClosestNormalLocal (const Vector3D &otherPoint) const override |
SurfaceRayIntersection3 | ClosestIntersectionLocal (const Ray3D &ray) const override |
Returns the closest intersection point for given ray in local frame. More... | |
Protected Member Functions inherited from CubbyFlow::Surface3 | |
virtual double | ClosestDistanceLocal (const Vector3D &otherPoint) const |
Detailed Description
3-D box geometry.
This class represents 3-D box geometry which extends Surface3 by overriding surface-related queries. This box implementation is an axis-aligned box that wraps lower-level primitive type, BoundingBox3D.
Constructor & Destructor Documentation
◆ Box3() [1/4]
CubbyFlow::Box3::Box3 | ( | const Transform3 & | transform = Transform3() , |
bool | isNormalFlipped = false |
||
) |
Constructs (0, 0, 0) x (1, 1, 1) box.
◆ Box3() [2/4]
CubbyFlow::Box3::Box3 | ( | const Vector3D & | lowerCorner, |
const Vector3D & | upperCorner, | ||
const Transform3 & | transform = Transform3() , |
||
bool | isNormalFlipped = false |
||
) |
Constructs a box with given lowerCorner
and upperCorner
.
◆ Box3() [3/4]
|
explicit |
Constructs a box with BoundingBox3D instance.
◆ Box3() [4/4]
CubbyFlow::Box3::Box3 | ( | const Box3 & | other | ) |
Copy constructor.
Member Function Documentation
◆ BoundingBoxLocal()
|
overrideprotectedvirtual |
Returns the bounding box of this surface object in local frame.
Implements CubbyFlow::Surface3.
◆ ClosestIntersectionLocal()
|
overrideprotectedvirtual |
Returns the closest intersection point for given ray
in local frame.
Implements CubbyFlow::Surface3.
◆ ClosestNormalLocal()
|
overrideprotectedvirtual |
Returns the normal to the closest point on the surface from the given point otherPoint
in local frame.
Implements CubbyFlow::Surface3.
◆ ClosestPointLocal()
|
overrideprotectedvirtual |
Returns the closest point from the given point otherPoint
to the surface in local frame.
Implements CubbyFlow::Surface3.
◆ GetBuilder()
◆ IntersectsLocal()
|
overrideprotectedvirtual |
Returns true if the given ray
intersects with this surface object in local frame.
Reimplemented from CubbyFlow::Surface3.
Member Data Documentation
◆ bound
BoundingBox3D CubbyFlow::Box3::bound = BoundingBox3D(Vector3D(), Vector3D(1.0, 1.0, 1.0)) |
Bounding box of this box.
The documentation for this class was generated from the following file:
- Core/Geometry/Box3.h