383 double translation = 0.0,
384 bool capping =
true)
const;
393 bool capping =
true)
const;
#define AssertTensorDevice(tensor,...)
#define AssertTensorShape(tensor,...)
int64_t GetLength() const
Tensor Max(const SizeVector &dims, bool keepdim=false) const
Tensor Min(const SizeVector &dims, bool keepdim=false) const
Tensor Mean(const SizeVector &dims, bool keepdim=false) const
LineSet define a sets of lines in 3D. A typical application is to display the point cloud corresponde...
A bounding box that is aligned along the coordinate axes and defined by the min_bound and max_bound.
Mix-in class for geometry types that can be visualized.
A LineSet contains points and lines joining them and optionally attributes on the points and lines.
TensorMap & GetLineAttr()
Getter for line_attr_ TensorMap.
core::Device GetDevice() const override
Returns the device attribute of this LineSet.
const core::Tensor & GetLineAttr(const std::string &key) const
const core::Tensor & GetPointPositions() const
bool HasLineAttr(const std::string &key) const
bool HasPointAttr(const std::string &key) const
core::Tensor & GetLineIndices()
TensorMap & GetPointAttr()
Getter for point_attr_ TensorMap.
core::Tensor GetCenter() const
Returns the center for point coordinates.
void RemoveLineAttr(const std::string &key)
core::Tensor GetMaxBound() const
Returns the max bound for point coordinates.
std::string ToString() const
Text description.
const core::Tensor & GetPointAttr(const std::string &key) const
core::Tensor & GetLineAttr(const std::string &key)
core::Tensor & GetPointAttr(const std::string &key)
LineSet & Translate(const core::Tensor &translation, bool relative=true)
Translates the points and lines of the LineSet.
LineSet & PaintUniformColor(const core::Tensor &color)
Assigns uniform color to all lines of the LineSet.
bool HasPointPositions() const
OrientedBoundingBox GetOrientedBoundingBox() const
Create an oriented bounding box from point attribute "positions".
const core::Tensor & GetLineColors() const
void RemovePointAttr(const std::string &key)
const TensorMap & GetLineAttr() const
Getter for line_attr_ TensorMap. Used in Pybind.
void SetPointPositions(const core::Tensor &value)
LineSet Clone() const
Returns copy of the line set on the same device.
LineSet To(const core::Device &device, bool copy=false) const
TriangleMesh ExtrudeLinear(const core::Tensor &vector, double scale=1.0, bool capping=true) const
TriangleMesh ExtrudeRotation(double angle, const core::Tensor &axis, int resolution=16, double translation=0.0, bool capping=true) const
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={})
LineSet(const core::Device &device=core::Device("CPU:0"))
Construct an empty LineSet on the provided device.
bool IsEmpty() const override
Returns !HasPointPositions(), line indices are ignored.
void SetLineAttr(const std::string &key, const core::Tensor &value)
bool HasLineIndices() const
void SetLineColors(const core::Tensor &value)
cloudViewer::geometry::LineSet ToLegacy() const
Convert to a legacy CloudViewer LineSet.
bool HasLineColors() const
core::Tensor & GetPointPositions()
LineSet & Transform(const core::Tensor &transformation)
Transforms the points and lines of the LineSet.
void SetPointAttr(const std::string &key, const core::Tensor &value)
core::Tensor & GetLineColors()
static geometry::LineSet FromLegacy(const cloudViewer::geometry::LineSet &lineset_legacy, core::Dtype float_dtype=core::Float32, core::Dtype int_dtype=core::Int64, const core::Device &device=core::Device("CPU:0"))
const TensorMap & GetPointAttr() const
Getter for point_attr_ TensorMap. Used in Pybind.
AxisAlignedBoundingBox GetAxisAlignedBoundingBox() const
Create an axis-aligned bounding box from point attribute "positions".
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...
const core::Tensor & GetLineIndices() const
core::Tensor GetMinBound() const
Returns the max bound for point coordinates.
void SetLineIndices(const core::Tensor &value)
Set the value of the "indices" attribute in line_attr_.
LineSet & Scale(double scale, const core::Tensor ¢er)
Scales the points and lines of the LineSet.
LineSet & Clear() override
Clear all data in the line set.
virtual ~LineSet() override
A bounding box oriented along an arbitrary frame of reference.
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,...
bool Contains(const std::string &key) const
A triangle mesh contains vertices and triangles.
constexpr nullopt_t nullopt
Generic file read and write utility for python interface.