382 double translation = 0.0,
383 bool capping =
true)
const;
392 bool capping =
true)
const;
math::float4 color
Definition: LineSetBuffers.cpp:45
#define AssertTensorDevice(tensor,...)
Definition: TensorCheck.h:43
#define AssertTensorShape(tensor,...)
Definition: TensorCheck.h:58
bool copy
Definition: VtkUtils.cpp:74
int64_t GetLength() const
Definition: Tensor.h:1124
Tensor Min(const SizeVector &dims, bool keepdim=false) const
Definition: Tensor.cpp:1236
Tensor Mean(const SizeVector &dims, bool keepdim=false) const
Definition: Tensor.cpp:1215
Tensor Max(const SizeVector &dims, bool keepdim=false) const
Definition: Tensor.cpp:1243
LineSet define a sets of lines in 3D. A typical application is to display the point cloud corresponde...
Definition: LineSet.h:29
A bounding box that is aligned along the coordinate axes and defined by the min_bound and max_bound.
Definition: BoundingVolume.h:46
Mix-in class for geometry types that can be visualized.
Definition: DrawableGeometry.h:19
The base geometry class.
Definition: Geometry.h:21
A LineSet contains points and lines joining them and optionally attributes on the points and lines.
Definition: LineSet.h:84
std::string ToString() const
Text description.
Definition: LineSet.cpp:56
LineSet & Rotate(const core::Tensor &R, const core::Tensor ¢er)
Rotates the points and lines of the line set. Custom attributes (e.g.: point or line normals) are not...
Definition: LineSet.cpp:126
const core::Tensor & GetLineIndices() const
Definition: LineSet.h:197
core::Device device_
Definition: LineSet.h:411
bool HasLineColors() const
Definition: LineSet.h:276
bool HasPointAttr(const std::string &key) const
Definition: LineSet.h:249
core::Tensor GetMaxBound() const
Returns the max bound for point coordinates.
Definition: LineSet.h:292
void SetLineColors(const core::Tensor &value)
Definition: LineSet.h:240
void RemoveLineAttr(const std::string &key)
Definition: LineSet.h:193
core::Tensor & GetPointAttr(const std::string &key)
Definition: LineSet.h:132
virtual ~LineSet() override
Definition: LineSet.h:107
void SetLineAttr(const std::string &key, const core::Tensor &value)
Definition: LineSet.h:227
core::Tensor & GetLineAttr(const std::string &key)
Definition: LineSet.h:150
LineSet(const core::Device &device=core::Device("CPU:0"))
Construct an empty LineSet on the provided device.
Definition: LineSet.cpp:26
const TensorMap & GetLineAttr() const
Getter for line_attr_ TensorMap. Used in Pybind.
Definition: LineSet.h:141
AxisAlignedBoundingBox GetAxisAlignedBoundingBox() const
Create an axis-aligned bounding box from point attribute "positions".
Definition: LineSet.cpp:190
open3d::geometry::LineSet ToLegacy() const
Convert to a legacy Open3D LineSet.
Definition: LineSet.cpp:170
TriangleMesh ExtrudeLinear(const core::Tensor &vector, double scale=1.0, bool capping=true) const
Definition: LineSet.cpp:204
core::Tensor GetCenter() const
Returns the center for point coordinates.
Definition: LineSet.h:295
static LineSet CreateCameraVisualization(int view_width_px, int view_height_px, const core::Tensor &intrinsic, const core::Tensor &extrinsic, double scale, const core::Tensor &color={})
Definition: LineSet.cpp:231
bool HasPointPositions() const
Definition: LineSet.h:256
void SetPointAttr(const std::string &key, const core::Tensor &value)
Definition: LineSet.h:210
const core::Tensor & GetPointAttr(const std::string &key) const
Definition: LineSet.h:165
bool HasLineAttr(const std::string &key) const
Definition: LineSet.h:262
LineSet Clone() const
Returns copy of the line set on the same device.
Definition: LineSet.h:117
TensorMap & GetLineAttr()
Getter for line_attr_ TensorMap.
Definition: LineSet.h:144
core::Tensor & GetLineIndices()
Definition: LineSet.h:156
LineSet & PaintUniformColor(const core::Tensor &color)
Assigns uniform color to all lines of the LineSet.
Definition: LineSet.cpp:215
core::Device GetDevice() const override
Returns the device attribute of this LineSet.
Definition: LineSet.h:347
const core::Tensor & GetLineAttr(const std::string &key) const
Definition: LineSet.h:185
LineSet & Scale(double scale, const core::Tensor ¢er)
Scales the points and lines of the LineSet.
Definition: LineSet.cpp:116
bool HasLineIndices() const
Definition: LineSet.h:269
LineSet & Transform(const core::Tensor &transformation)
Transforms the points and lines of the LineSet.
Definition: LineSet.cpp:97
LineSet To(const core::Device &device, bool copy=false) const
Definition: LineSet.cpp:42
core::Tensor & GetLineColors()
Definition: LineSet.h:160
LineSet & Clear() override
Clear all data in the line set.
Definition: LineSet.h:279
core::Tensor & GetPointPositions()
Definition: LineSet.h:138
void RemovePointAttr(const std::string &key)
Definition: LineSet.h:173
void SetLineIndices(const core::Tensor &value)
Set the value of the "indices" attribute in line_attr_.
Definition: LineSet.h:233
core::Tensor GetMinBound() const
Returns the max bound for point coordinates.
Definition: LineSet.h:289
TensorMap line_attr_
Definition: LineSet.h:413
void SetPointPositions(const core::Tensor &value)
Definition: LineSet.h:217
TensorMap point_attr_
Definition: LineSet.h:412
TensorMap & GetPointAttr()
Getter for point_attr_ TensorMap.
Definition: LineSet.h:126
LineSet & Translate(const core::Tensor &translation, bool relative=true)
Translates the points and lines of the LineSet.
Definition: LineSet.cpp:103
static geometry::LineSet FromLegacy(const open3d::geometry::LineSet &lineset_legacy, core::Dtype float_dtype=core::Float32, core::Dtype int_dtype=core::Int64, const core::Device &device=core::Device("CPU:0"))
Definition: LineSet.cpp:133
OrientedBoundingBox GetOrientedBoundingBox() const
Create an oriented bounding box from point attribute "positions".
Definition: LineSet.cpp:211
const core::Tensor & GetPointPositions() const
Definition: LineSet.h:177
const core::Tensor & GetLineColors() const
Definition: LineSet.h:203
TriangleMesh ExtrudeRotation(double angle, const core::Tensor &axis, int resolution=16, double translation=0.0, bool capping=true) const
Definition: LineSet.cpp:194
const TensorMap & GetPointAttr() const
Getter for point_attr_ TensorMap. Used in Pybind.
Definition: LineSet.h:123
bool IsEmpty() const override
Returns !HasPointPositions(), line indices are ignored.
Definition: LineSet.h:286
A bounding box oriented along an arbitrary frame of reference.
Definition: BoundingVolume.h:257
Definition: TensorMap.h:31
std::size_t Erase(const std::string key)
Erase elements for the TensorMap by key value, if the key exists. If the key does not exists,...
Definition: TensorMap.h:92
bool Contains(const std::string &key) const
Definition: TensorMap.h:187
A triangle mesh contains vertices and triangles.
Definition: TriangleMesh.h:94
const Dtype Int64
Definition: Dtype.cpp:47
const Dtype Float32
Definition: Dtype.cpp:42
constexpr nullopt_t nullopt
Definition: Optional.h:152
Definition: PinholeCameraIntrinsic.cpp:16