29 R_(
Eigen::Matrix3d::Identity()),
39 const Eigen::Matrix3d& R,
40 const Eigen::Vector3d& extent)
63 inline const Eigen::Vector3d&
GetColor()
const {
return color_; }
70 double volume()
const;
92 std::vector<Eigen::Vector3d> GetBoxPoints()
const;
95 std::vector<size_t> GetPointIndicesWithinBoundingBox(
96 const std::vector<Eigen::Vector3d>&
points)
const;
98 std::vector<size_t> GetPointIndicesWithinBoundingBox(
99 const std::vector<CCVector3>&
points)
const;
A bounding box oriented along an arbitrary frame of reference.
Eigen::Vector3d color_
The color of the bounding box in RGB.
Eigen::Vector3d GetHalfExtent() const
Returns the half extent of the bounding box in its frame of reference.
Eigen::Vector3d extent_
The extent of the bounding box in its frame of reference.
const Eigen::Vector3d & GetExtent() const
OrientedBoundingBox()
Default constructor.
const Eigen::Vector3d & GetPosition() const
Eigen::Vector3d center_
The center point of the bounding box.
CCVector3 getCenter() const
Returns center.
OrientedBoundingBox(const Eigen::Vector3d ¢er, const Eigen::Matrix3d &R, const Eigen::Vector3d &extent)
Parameterized constructor.
const Eigen::Matrix3d & GetRotation() const
const Eigen::Vector3d & GetColor() const
Gets the bounding box color.
double GetMaxExtent() const
Returns the max extent of the bounding box in its frame of reference.
virtual ~OrientedBoundingBox()
void SetColor(const Eigen::Vector3d &color)
Sets the bounding box color.
Generic file read and write utility for python interface.