Loading...
Searching...
No Matches
Box.hpp
Go to the documentation of this file.
Builder & WithUpperCorner(const Vector< double, N > &pt)
Returns builder with upper corner set.
std::shared_ptr< Box< N > > MakeShared() const
Builds shared pointer of Box instance.
Builder & WithLowerCorner(const Vector< double, N > &pt)
Returns builder with lower corner set.
Builder & WithBoundingBox(const BoundingBox< double, N > &bbox)
Returns builder with bounding box.
Vector< double, N > ClosestNormalLocal(const Vector< double, N > &otherPoint) const override
bool IntersectsLocal(const Ray< double, N > &ray) const override
Vector< double, N > ClosestPointLocal(const Vector< double, N > &otherPoint) const override
BoundingBox< double, N > BoundingBoxLocal() const override
Returns the bounding box of this surface object in local frame.
Box(const Vector< double, N > &lowerCorner, const Vector< double, N > &upperCorner, const Transform< N > &_transform=Transform< N >{}, bool _isNormalFlipped=false)
Constructs a box with given lowerCorner and upperCorner.
Box(const BoundingBox< double, N > &boundingBox, const Transform< N > &_transform=Transform< N >{}, bool _isNormalFlipped=false)
Constructs a box with BoundingBox instance.
Box(const Transform< N > &_transform=Transform< N >{}, bool _isNormalFlipped=false)
Constructs (0, 0, ...) x (1, 1, ...) box.
SurfaceRayIntersection< N > ClosestIntersectionLocal(const Ray< double, N > &ray) const override
Returns the closest intersection point for given ray in local frame.
static std::enable_if_t< IsMatrixSizeStatic< Rows, Cols >(), D > MakeConstant(ValueType val)
Makes a static matrix with constant entries.
Definition MatrixDenseBase-Impl.hpp:152
Definition Matrix.hpp:30
Definition pybind11Utils.hpp:21
std::shared_ptr< Box3 > Box3Ptr
Shared pointer type for the Box3.
Definition Box.hpp:94
std::shared_ptr< Box2 > Box2Ptr
Shared pointer type for the Box2.
Definition Box.hpp:91
Struct that represents ray-surface intersection point.
Definition Surface.hpp:26
1.9.8