353 const std::unordered_map<std::string, core::Tensor>
354 &map_keys_to_tensors) {
366 const std::unordered_map<std::string, core::Tensor>
367 &map_keys_to_tensors) {
393 bool relative =
true) {
void SynchronizedPushBack(const std::unordered_map< std::string, core::Tensor > &map_keys_to_tensors)
Definition: TensorListMap.cpp:89
const core::TensorList & GetTriangleAttr(const std::string &key) const
Definition: TriangleMesh.h:205
core::TensorList & GetVertices()
Definition: TriangleMesh.h:144
bool HasVertexColors() const
Definition: TriangleMesh.h:307
TriangleMesh & Clear() override
Clear all data in the trianglemesh.
Definition: TriangleMesh.h:373
core::Device GetDevice() const
Definition: TriangleMesh.h:405
core::TensorList & GetTriangles()
Definition: TriangleMesh.h:164
int64_t GetSize() const
Definition: TensorList.h:269
geometry::TriangleMesh ToLegacyTriangleMesh() const
Convert to a legacy Open3D TriangleMesh.
Definition: TriangleMesh.h:416
TriangleMesh & Transform(const core::Tensor &transformation)
Definition: TriangleMesh.h:388
virtual ~TriangleMesh() override
Definition: TriangleMesh.h:131
TensorListMap triangle_attr_
Definition: TriangleMesh.h:423
const core::TensorList & GetVertexNormals() const
Definition: TriangleMesh.h:197
TriangleMesh(core::Dtype vertex_dtype=core::Dtype::Float32, core::Dtype triangle_dtype=core::Dtype::Int64, const core::Device &device=core::Device("CPU:0"))
Construct an empty trianglemesh.
Definition: TriangleMesh.cpp:42
A TriangleMesh contains vertices and triangles.
Definition: TriangleMesh.h:107
void SetVertexNormals(const core::TensorList &value)
Definition: TriangleMesh.h:253
void LogError(const char *format, const Args &... args)
Definition: Console.h:176
const core::TensorList & GetTriangleColors() const
Definition: TriangleMesh.h:223
bool HasTriangleAttr(const std::string &key) const
Definition: TriangleMesh.h:320
TriangleMesh & Translate(const core::Tensor &translation, bool relative=true)
Definition: TriangleMesh.h:392
void VertexSynchronizedPushBack(const std::unordered_map< std::string, core::Tensor > &map_keys_to_tensors)
Definition: TriangleMesh.h:352
Definition: TensorListMap.h:44
bool HasVertices() const
Definition: TriangleMesh.h:300
Definition: TensorList.h:58
void SetTriangleAttr(const std::string &key, const core::TensorList &value)
Definition: TriangleMesh.h:263
core::TensorList & GetTriangleAttr(const std::string &key)
Definition: TriangleMesh.h:158
TriangleMesh & Rotate(const core::Tensor &R, const core::Tensor ¢er)
Definition: TriangleMesh.h:401
bool HasTriangles() const
Definition: TriangleMesh.h:329
void TriangleSynchronizedPushBack(const std::unordered_map< std::string, core::Tensor > &map_keys_to_tensors)
Definition: TriangleMesh.h:365
bool IsEmpty() const override
Returns !HasVertices(), triangles are ignored.
Definition: TriangleMesh.h:380
void SetVertices(const core::TensorList &value)
Definition: TriangleMesh.h:239
const core::TensorList & GetTriangleNormals() const
Definition: TriangleMesh.h:217
const core::TensorList & GetVertexColors() const
Definition: TriangleMesh.h:191
core::Tensor GetMinBound() const
Definition: TriangleMesh.h:382
core::TensorList & GetVertexAttr(const std::string &key)
Definition: TriangleMesh.h:138
core::TensorList & GetVertexColors()
Definition: TriangleMesh.h:148
void AssertDevice(const Device &expected_device) const
Definition: TensorList.h:257
core::TensorList & GetTriangleColors()
Definition: TriangleMesh.h:174
static const Dtype Float32
Definition: Dtype.h:42
void AssertElementShape(const SizeVector &expected_element_shape) const
Definition: TensorList.h:248
The base geometry class.
Definition: Geometry.h:36
void SetVertexColors(const core::TensorList &value)
Definition: TriangleMesh.h:246
static const Dtype Int64
Definition: Dtype.h:45
const core::TensorList & GetVertices() const
Definition: TriangleMesh.h:185
Definition: PinholeCameraIntrinsic.cpp:35
void SetTriangleNormals(const core::TensorList &value)
Definition: TriangleMesh.h:277
core::Device device_
Definition: TriangleMesh.h:421
void SetTriangleColors(const core::TensorList &value)
Definition: TriangleMesh.h:284
void SetVertexAttr(const std::string &key, const core::TensorList &value)
Definition: TriangleMesh.h:232
void SetTriangles(const core::TensorList &value)
Set the vlaue of the "triangles" attribute in triangle_attr_.
Definition: TriangleMesh.h:270
static geometry::TriangleMesh FromLegacyTrangleMesh(const geometry::TriangleMesh &mesh_legacy, core::Dtype dtype=core::Dtype::Float32, const core::Device &device=core::Device("CPU:0"))
Create a TriangleMesh from a legacy Open3D TriangleMesh.
Definition: TriangleMesh.h:408
bool HasVertexNormals() const
Definition: TriangleMesh.h:314
core::TensorList & GetVertexNormals()
Definition: TriangleMesh.h:152
TensorListMap vertex_attr_
Definition: TriangleMesh.h:422
core::TensorList & GetTriangleNormals()
Definition: TriangleMesh.h:168
bool Contains(const std::string &key) const
Definition: TensorListMap.h:97
bool HasVertexAttr(const std::string &key) const
Definition: TriangleMesh.h:293
bool HasTriangleColors() const
Definition: TriangleMesh.h:343
bool HasTriangleNormals() const
Definition: TriangleMesh.h:336
TriangleMesh & Scale(double scale, const core::Tensor ¢er)
Definition: TriangleMesh.h:397
core::Tensor GetCenter() const
Definition: TriangleMesh.h:386
const core::TensorList & GetVertexAttr(const std::string &key) const
Definition: TriangleMesh.h:179
const core::TensorList & GetTriangles() const
Definition: TriangleMesh.h:211
core::Tensor GetMaxBound() const
Definition: TriangleMesh.h:384