13 #include <unordered_map>
14 #include <unordered_set>
65 virtual bool IsEmpty()
const override;
66 virtual Eigen::Vector3d
GetMinBound()
const override;
67 virtual Eigen::Vector3d
GetMaxBound()
const override;
68 virtual Eigen::Vector3d
GetCenter()
const override;
80 bool robust =
false)
const override;
89 bool robust =
false)
const override;
93 bool relative =
true)
override;
95 const Eigen::Vector3d ¢er)
override;
97 const Eigen::Vector3d ¢er)
override;
137 std::tuple<std::shared_ptr<TriangleMesh>, std::vector<size_t>>
144 const std::vector<Eigen::Vector3d> &vertices)
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
MeshBash Class.
Definition: MeshBase.h:32
std::vector< Eigen::Vector3d > vertices_
Vertex coordinates.
Definition: MeshBase.h:149
MeshBase(Geometry::GeometryType type)
Definition: MeshBase.h:142
virtual bool IsEmpty() const override
Returns true iff the geometry is empty.
Definition: MeshBase.cpp:33
virtual Eigen::Vector3d GetMaxBound() const override
Returns max bounds for geometry coordinates.
Definition: MeshBase.cpp:39
virtual OrientedBoundingBox GetMinimalOrientedBoundingBox(bool robust=false) const override
Definition: MeshBase.cpp:53
bool HasVertexNormals() const
Returns True if the mesh contains vertex normals.
Definition: MeshBase.h:106
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:74
std::vector< Eigen::Vector3d > vertex_colors_
RGB colors of vertices.
Definition: MeshBase.h:153
MeshBase(Geometry::GeometryType type, const std::vector< Eigen::Vector3d > &vertices)
Definition: MeshBase.h:143
MeshBase & operator+=(const MeshBase &mesh)
Definition: MeshBase.cpp:81
virtual MeshBase & Transform(const Eigen::Matrix4d &transformation) override
Apply transformation (4x4 matrix) to the geometry coordinates.
Definition: MeshBase.cpp:57
DeformAsRigidAsPossibleEnergy
Definition: MeshBase.h:57
~MeshBase() override
Definition: MeshBase.h:61
MeshBase & PaintUniformColor(const Eigen::Vector3d &color)
Assigns each vertex in the TriangleMesh the same color.
Definition: MeshBase.h:131
bool HasVertexColors() const
Returns True if the mesh contains vertex colors.
Definition: MeshBase.h:112
MeshBase()
Default Constructor.
Definition: MeshBase.h:60
virtual AxisAlignedBoundingBox GetAxisAlignedBoundingBox() const override
Definition: MeshBase.cpp:45
SimplificationContraction
Indicates the method that is used for mesh simplification if multiple vertices are combined to a sing...
Definition: MeshBase.h:42
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:111
virtual MeshBase & Translate(const Eigen::Vector3d &translation, bool relative=true) override
Apply translation to the geometry coordinates.
Definition: MeshBase.cpp:63
MeshBase & NormalizeNormals()
Normalize vertex normals to length 1.
Definition: MeshBase.h:118
bool HasVertices() const
Returns True if the mesh contains vertices.
Definition: MeshBase.h:103
virtual MeshBase & Clear() override
Clear all elements in the geometry.
Definition: MeshBase.cpp:26
virtual Eigen::Vector3d GetCenter() const override
Returns the center of the geometry coordinates.
Definition: MeshBase.cpp:43
MeshBase operator+(const MeshBase &mesh) const
Definition: MeshBase.cpp:106
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:69
std::vector< Eigen::Vector3d > vertex_normals_
Vertex normals.
Definition: MeshBase.h:151
virtual Eigen::Vector3d GetMinBound() const override
Returns min bounds for geometry coordinates.
Definition: MeshBase.cpp:35
virtual OrientedBoundingBox GetOrientedBoundingBox(bool robust=false) const override
Definition: MeshBase.cpp:49
FilterScope
Indicates the scope of filter operations.
Definition: MeshBase.h:51
A bounding box oriented along an arbitrary frame of reference.
Definition: BoundingVolume.h:25
Definition: TriangleMeshSimplification.cpp:22
Definition: PinholeCameraIntrinsic.cpp:16