20 class OrientedBoundingBox;
21 class AxisAlignedBoundingBox;
40 const std::vector<Eigen::Vector2i> &lines)
51 Eigen::Vector3d
GetCenter()
const override;
63 bool robust =
false)
const override;
72 bool robust =
false)
const override;
76 bool relative =
true)
override;
77 LineSet &
Scale(
const double scale,
const Eigen::Vector3d ¢er)
override;
79 const Eigen::Vector3d ¢er)
override;
99 size_t line_index)
const {
121 const std::vector<std::pair<int, int>> &correspondences);
157 const Eigen::Matrix3d &intrinsic,
158 const Eigen::Matrix4d &extrinsic,
math::float4 color
Definition: LineSetBuffers.cpp:45
A bounding box that is aligned along the coordinate axes.
Definition: BoundingVolume.h:159
The base geometry class for 3D geometries.
Definition: Geometry3D.h:28
void ResizeAndPaintUniformColor(std::vector< Eigen::Vector3d > &colors, const size_t size, const Eigen::Vector3d &color) const
Resizes the colors vector and paints a uniform color.
Definition: Geometry3D.cpp:56
The base geometry class.
Definition: Geometry.h:18
GeometryType
Specifies possible geometry types.
Definition: Geometry.h:23
LineSet define a sets of lines in 3D. A typical application is to display the point cloud corresponde...
Definition: LineSet.h:29
OrientedBoundingBox GetMinimalOrientedBoundingBox(bool robust=false) const override
Definition: LineSet.cpp:44
bool HasPoints() const
Returns true if the object contains points.
Definition: LineSet.h:85
static std::shared_ptr< LineSet > CreateCameraVisualization(int view_width_px, int view_height_px, const Eigen::Matrix3d &intrinsic, const Eigen::Matrix4d &extrinsic, double scale=1.0)
Definition: LineSetFactory.cpp:129
std::pair< Eigen::Vector3d, Eigen::Vector3d > GetLineCoordinate(size_t line_index) const
Returns the coordinates of the line at the given index.
Definition: LineSet.h:98
LineSet & Clear() override
Clear all elements in the geometry.
Definition: LineSet.cpp:17
~LineSet() override
Definition: LineSet.h:44
Eigen::Vector3d GetCenter() const override
Returns the center of the geometry coordinates.
Definition: LineSet.cpp:34
LineSet operator+(const LineSet &lineset) const
Definition: LineSet.cpp:99
LineSet()
Default Constructor.
Definition: LineSet.h:32
std::vector< Eigen::Vector3d > colors_
RGB colors of lines.
Definition: LineSet.h:167
LineSet & Translate(const Eigen::Vector3d &translation, bool relative=true) override
Apply translation to the geometry coordinates.
Definition: LineSet.cpp:53
static std::shared_ptr< LineSet > CreateFromAxisAlignedBoundingBox(const AxisAlignedBoundingBox &box)
Factory function to create a LineSet from an AxisAlignedBoundingBox.
Definition: LineSetFactory.cpp:84
Eigen::Vector3d GetMaxBound() const override
Returns max bounds for geometry coordinates.
Definition: LineSet.cpp:30
LineSet & PaintUniformColor(const Eigen::Vector3d &color)
Assigns each line in the LineSet the same color.
Definition: LineSet.h:107
std::vector< Eigen::Vector2i > lines_
Lines denoted by the index of points forming the line.
Definition: LineSet.h:165
static std::shared_ptr< LineSet > CreateFromPointCloudCorrespondences(const PointCloud &cloud0, const PointCloud &cloud1, const std::vector< std::pair< int, int >> &correspondences)
Factory function to create a LineSet from two PointClouds (cloud0, cloud1) and a correspondence set.
Definition: LineSetFactory.cpp:19
bool IsEmpty() const override
Returns true iff the geometry is empty.
Definition: LineSet.cpp:24
static std::shared_ptr< LineSet > CreateFromOrientedBoundingBox(const OrientedBoundingBox &box)
Factory function to create a LineSet from an OrientedBoundingBox.
Definition: LineSetFactory.cpp:64
Eigen::Vector3d GetMinBound() const override
Returns min bounds for geometry coordinates.
Definition: LineSet.cpp:26
static std::shared_ptr< LineSet > CreateFromTetraMesh(const TetraMesh &mesh)
Definition: LineSetFactory.cpp:104
std::vector< Eigen::Vector3d > points_
Points coordinates.
Definition: LineSet.h:163
LineSet & operator+=(const LineSet &lineset)
Definition: LineSet.cpp:69
OrientedBoundingBox GetOrientedBoundingBox(bool robust=false) const override
Definition: LineSet.cpp:40
LineSet & Scale(const double scale, const Eigen::Vector3d ¢er) override
Apply scaling to the geometry coordinates. Given a scaling factor , and center , a given point is tr...
Definition: LineSet.cpp:58
bool HasLines() const
Returns true if the object contains lines.
Definition: LineSet.h:88
LineSet & Rotate(const Eigen::Matrix3d &R, const Eigen::Vector3d ¢er) override
Apply rotation to the geometry coordinates and normals. Given a rotation matrix , and center ,...
Definition: LineSet.cpp:63
static std::shared_ptr< LineSet > CreateFromTriangleMesh(const TriangleMesh &mesh)
Definition: LineSetFactory.cpp:41
LineSet & Transform(const Eigen::Matrix4d &transformation) override
Apply transformation (4x4 matrix) to the geometry coordinates.
Definition: LineSet.cpp:48
LineSet(const std::vector< Eigen::Vector3d > &points, const std::vector< Eigen::Vector2i > &lines)
Parameterized Constructor.
Definition: LineSet.h:39
AxisAlignedBoundingBox GetAxisAlignedBoundingBox() const override
Definition: LineSet.cpp:36
bool HasColors() const
Returns true if the objects lines contains colors.
Definition: LineSet.h:91
A bounding box oriented along an arbitrary frame of reference.
Definition: BoundingVolume.h:25
A point cloud consists of point coordinates, and optionally point colors and point normals.
Definition: PointCloud.h:36
Tetra mesh contains vertices and tetrahedra represented by the indices to the vertices.
Definition: TetraMesh.h:29
Triangle mesh contains vertices and triangles represented by the indices to the vertices.
Definition: TriangleMesh.h:35
OPEN3D_HOST_DEVICE Pair< First, Second > make_pair(const First &_first, const Second &_second)
Definition: SlabTraits.h:49
Definition: PinholeCameraIntrinsic.cpp:16