Plane3.h
Go to the documentation of this file.
std::shared_ptr< Plane3 > Plane3Ptr
Shared pointer for the Plane3 type.
Definition: Plane3.h:64
BoundingBox3D BoundingBoxLocal() const override
Returns the bounding box of this surface object in local frame.
Builder & WithNormal(const Vector3D &normal)
Returns builder with plane normal.
Structure that represents ray-surface intersection point.
Definition: Surface3.h:23
Vector3D ClosestPointLocal(const Vector3D &otherPoint) const override
Builder & WithPoint(const Vector3D &point)
Returns builder with point on the plane.
Definition: pybind11Utils.h:24
Transform3 transform
Local-to-world transform.
Definition: Surface3.h:36
Plane3(const Transform3 &transform=Transform3(), bool isNormalFlipped=false)
Constructs a plane that crosses (0, 0, 0) with surface normal (0, 1, 0).
bool IntersectsLocal(const Ray3D &ray) const override
bool isNormalFlipped
Flips normal when calling Surface3::closestNormal(...).
Definition: Surface3.h:39
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.
Plane3Ptr MakeShared() const
Builds shared pointer of Plane3 instance.