367 bool relative =
true) {
const TensorMap & GetVertexAttr() const
Getter for vertex_attr_ TensorMap. Used in Pybind.
Definition: TriangleMesh.h:131
bool HasVertexColors() const
Definition: TriangleMesh.h:307
constexpr nullopt_t nullopt
Definition: Optional.h:146
TriangleMesh & Clear() override
Clear all data in the trianglemesh.
Definition: TriangleMesh.h:347
core::Device GetDevice() const
Definition: TriangleMesh.h:379
TensorMap vertex_attr_
Definition: TriangleMesh.h:399
TriangleMesh & Transform(const core::Tensor &transformation)
Definition: TriangleMesh.h:362
virtual ~TriangleMesh() override
Definition: TriangleMesh.h:127
void SetVertexNormals(const core::Tensor &value)
Definition: TriangleMesh.h:253
void SetVertexAttr(const std::string &key, const core::Tensor &value)
Definition: TriangleMesh.h:232
A TriangleMesh contains vertices and triangles.
Definition: TriangleMesh.h:106
const core::Tensor & GetTriangleNormals() const
Definition: TriangleMesh.h:217
void LogError(const char *format, const Args &... args)
Definition: Console.h:176
bool HasTriangleAttr(const std::string &key) const
Definition: TriangleMesh.h:320
void SetTriangleAttr(const std::string &key, const core::Tensor &value)
Definition: TriangleMesh.h:263
TriangleMesh & Translate(const core::Tensor &translation, bool relative=true)
Definition: TriangleMesh.h:366
void SetTriangleNormals(const core::Tensor &value)
Definition: TriangleMesh.h:276
bool HasVertices() const
Definition: TriangleMesh.h:300
core::Tensor & GetVertexColors()
Definition: TriangleMesh.h:147
open3d::geometry::TriangleMesh ToLegacyTriangleMesh() const
Convert to a legacy Open3D TriangleMesh.
Definition: TriangleMesh.cpp:106
const core::Tensor & GetVertexAttr(const std::string &key) const
Definition: TriangleMesh.h:179
core::Tensor & GetVertexAttr(const std::string &key)
Definition: TriangleMesh.h:137
void SetVertices(const core::Tensor &value)
Definition: TriangleMesh.h:239
void SetVertexColors(const core::Tensor &value)
Definition: TriangleMesh.h:246
const core::Tensor & GetVertices() const
Definition: TriangleMesh.h:185
core::Tensor & GetTriangleAttr(const std::string &key)
Definition: TriangleMesh.h:160
TriangleMesh & Rotate(const core::Tensor &R, const core::Tensor ¢er)
Definition: TriangleMesh.h:375
core::Tensor & GetTriangles()
Definition: TriangleMesh.h:166
void AssertDevice(const Device &expected_device) const
Assert that the Tensor has the specified device.
Definition: Tensor.cpp:1261
bool Contains(const std::string &key) const
Definition: TensorMap.h:110
bool HasTriangles() const
Definition: TriangleMesh.h:329
const TensorMap & GetTriangleAttr() const
Getter for triangle_attr_ TensorMap. Used in Pybind.
Definition: TriangleMesh.h:154
bool IsEmpty() const override
Returns !HasVertices(), triangles are ignored.
Definition: TriangleMesh.h:354
const core::Tensor & GetVertexColors() const
Definition: TriangleMesh.h:191
core::Tensor & GetVertices()
Definition: TriangleMesh.h:143
core::Tensor GetMinBound() const
Definition: TriangleMesh.h:356
static const Dtype Float32
Definition: Dtype.h:42
The base geometry class.
Definition: Geometry.h:38
static const Dtype Int64
Definition: Dtype.h:45
static geometry::TriangleMesh FromLegacyTriangleMesh(const open3d::geometry::TriangleMesh &mesh_legacy, core::Dtype float_dtype=core::Dtype::Float32, core::Dtype int_dtype=core::Dtype::Int64, const core::Device &device=core::Device("CPU:0"))
Definition: TriangleMesh.cpp:63
Definition: PinholeCameraIntrinsic.cpp:35
core::Device device_
Definition: TriangleMesh.h:398
TriangleMesh(const core::Device &device=core::Device("CPU:0"))
Construct an empty trianglemesh.
Definition: TriangleMesh.cpp:41
core::Tensor & GetTriangleColors()
Definition: TriangleMesh.h:174
core::Tensor & GetVertexNormals()
Definition: TriangleMesh.h:151
const core::Tensor & GetTriangleAttr(const std::string &key) const
Definition: TriangleMesh.h:205
core::Tensor & GetTriangleNormals()
Definition: TriangleMesh.h:170
bool HasVertexNormals() const
Definition: TriangleMesh.h:314
Triangle mesh contains vertices and triangles represented by the indices to the vertices.
Definition: TriangleMesh.h:54
const core::Tensor & GetTriangles() const
Definition: TriangleMesh.h:211
bool HasVertexAttr(const std::string &key) const
Definition: TriangleMesh.h:292
void AssertShapeCompatible(const DynamicSizeVector &expected_shape) const
Assert that Tensor's shape is compatible with a dynamic shape.
Definition: Tensor.cpp:1256
bool HasTriangleColors() const
Definition: TriangleMesh.h:343
bool HasTriangleNormals() const
Definition: TriangleMesh.h:336
int64_t GetLength() const
Definition: Tensor.h:943
TensorMap triangle_attr_
Definition: TriangleMesh.h:400
void SetTriangles(const core::Tensor &value)
Set the vlaue of the "triangles" attribute in triangle_attr_.
Definition: TriangleMesh.h:269
void SetTriangleColors(const core::Tensor &value)
Definition: TriangleMesh.h:283
TriangleMesh & Scale(double scale, const core::Tensor ¢er)
Definition: TriangleMesh.h:371
core::Tensor GetCenter() const
Definition: TriangleMesh.h:360
Definition: TensorMap.h:49
const core::Tensor & GetTriangleColors() const
Definition: TriangleMesh.h:223
const core::Tensor & GetVertexNormals() const
Definition: TriangleMesh.h:197
core::Tensor GetMaxBound() const
Definition: TriangleMesh.h:358