32 #include <unordered_map> 33 #include <unordered_set> 84 virtual bool IsEmpty()
const override;
85 virtual Eigen::Vector3d
GetMinBound()
const override;
86 virtual Eigen::Vector3d
GetMaxBound()
const override;
87 virtual Eigen::Vector3d
GetCenter()
const override;
92 bool relative =
true)
override;
94 const Eigen::Vector3d ¢er)
override;
96 const Eigen::Vector3d ¢er)
override;
136 std::tuple<std::shared_ptr<TriangleMesh>, std::vector<size_t>>
143 const std::vector<Eigen::Vector3d> &vertices)
MeshBase & operator+=(const MeshBase &mesh)
Definition: MeshBase.cpp:97
virtual AxisAlignedBoundingBox GetAxisAlignedBoundingBox() const override
Returns an axis-aligned bounding box of the geometry.
Definition: MeshBase.cpp:65
virtual Eigen::Vector3d GetCenter() const override
Returns the center of the geometry coordinates.
Definition: MeshBase.cpp:63
The base geometry class.
Definition: Geometry.h:37
virtual MeshBase & 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: MeshBase.cpp:90
A bounding box that is aligned along the coordinate axes.
Definition: BoundingVolume.h:149
MeshBase()
Default Constructor.
Definition: MeshBase.h:79
MeshBase & PaintUniformColor(const Eigen::Vector3d &color)
Assigns each vertex in the TriangleMesh the same color.
Definition: MeshBase.h:130
MeshBash Class.
Definition: MeshBase.h:51
MeshBase & NormalizeNormals()
Normalize vertex normals to length 1.
Definition: MeshBase.h:117
A bounding box oriented along an arbitrary frame of reference.
Definition: BoundingVolume.h:44
Definition: TriangleMeshSimplification.cpp:41
bool HasVertexNormals() const
Returns True if the mesh contains vertex normals.
Definition: MeshBase.h:105
bool HasVertices() const
Returns True if the mesh contains vertices.
Definition: MeshBase.h:102
math::float4 color
Definition: LineSetBuffers.cpp:64
std::vector< Eigen::Vector3d > vertex_normals_
Vertex normals.
Definition: MeshBase.h:150
virtual Eigen::Vector3d GetMaxBound() const override
Returns max bounds for geometry coordinates.
Definition: MeshBase.cpp:59
The base geometry class for 3D geometries.
Definition: Geometry3D.h:46
FilterScope
Indicates the scope of filter operations.
Definition: MeshBase.h:70
virtual MeshBase & Transform(const Eigen::Matrix4d &transformation) override
Apply transformation (4x4 matrix) to the geometry coordinates.
Definition: MeshBase.cpp:73
virtual bool IsEmpty() const override
Returns true iff the geometry is empty.
Definition: MeshBase.cpp:53
SimplificationContraction
Indicates the method that is used for mesh simplification if multiple vertices are combined to a sing...
Definition: MeshBase.h:61
DeformAsRigidAsPossibleEnergy
Definition: MeshBase.h:76
char type
Definition: FilePCD.cpp:60
virtual MeshBase & 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: MeshBase.cpp:85
std::vector< Eigen::Vector3d > vertex_colors_
RGB colors of vertices.
Definition: MeshBase.h:152
MeshBase(Geometry::GeometryType type)
Definition: MeshBase.h:141
std::tuple< std::shared_ptr< TriangleMesh >, std::vector< size_t > > ComputeConvexHull() const
Function that computes the convex hull of the triangle mesh using qhull.
Definition: MeshBase.cpp:127
Definition: PinholeCameraIntrinsic.cpp:35
virtual OrientedBoundingBox GetOrientedBoundingBox() const override
Returns an oriented bounding box of the geometry.
Definition: MeshBase.cpp:69
GeometryType
Specifies possible geometry types.
Definition: Geometry.h:42
MeshBase operator+(const MeshBase &mesh) const
Definition: MeshBase.cpp:122
MeshBase(Geometry::GeometryType type, const std::vector< Eigen::Vector3d > &vertices)
Definition: MeshBase.h:142
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:75
~MeshBase() override
Definition: MeshBase.h:80
virtual Eigen::Vector3d GetMinBound() const override
Returns min bounds for geometry coordinates.
Definition: MeshBase.cpp:55
std::vector< Eigen::Vector3d > vertices_
Vertex coordinates.
Definition: MeshBase.h:148
virtual MeshBase & Clear() override
Clear all elements in the geometry.
Definition: MeshBase.cpp:46
virtual MeshBase & Translate(const Eigen::Vector3d &translation, bool relative=true) override
Apply translation to the geometry coordinates.
Definition: MeshBase.cpp:79
bool HasVertexColors() const
Returns True if the mesh contains vertex colors.
Definition: MeshBase.h:111