open3d.t.geometry.TriangleMesh

class open3d.t.geometry.TriangleMesh

A triangle mesh contains a set of 3d vertices and faces.

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: open3d.cpu.pybind.t.geometry.TriangleMesh, device: open3d.cpu.pybind.core.Device) -> None

  2. __init__(self: open3d.cpu.pybind.t.geometry.TriangleMesh, vertices: open3d.cpu.pybind.core.Tensor, triangles: open3d.cpu.pybind.core.Tensor) -> None

clear(self)

Clear all elements in the geometry.

Returns

open3d.t.geometry.Geometry

clone(self: open3d.cpu.pybind.t.geometry.TriangleMesh)open3d.cpu.pybind.t.geometry.TriangleMesh

Returns copy of the triangle mesh on the same device.

cpu(self: open3d.cpu.pybind.t.geometry.TriangleMesh)open3d.cpu.pybind.t.geometry.TriangleMesh

Transfer the triangle mesh to CPU. If the triangle mesh is already on CPU, no copy will be performed.

cuda(self: open3d.cpu.pybind.t.geometry.TriangleMesh, device_id: int = 0)open3d.cpu.pybind.t.geometry.TriangleMesh

Transfer the triangle mesh to a CUDA device. If the triangle mesh is already on the specified CUDA device, no copy will be performed.

static from_legacy_triangle_mesh(mesh_legacy: open3d.cpu.pybind.geometry.TriangleMesh, vertex_dtype: open3d.cpu.pybind.core.Dtype = Float32, triangle_dtype: open3d.cpu.pybind.core.Dtype = Int64, device: open3d.cpu.pybind.core.Device = CPU:0)open3d.cpu.pybind.t.geometry.TriangleMesh

Create a TriangleMesh from a legacy Open3D TriangleMesh.

get_center(self: open3d.cpu.pybind.t.geometry.TriangleMesh)open3d.cpu.pybind.core.Tensor

Returns the center for point coordinates.

get_max_bound(self: open3d.cpu.pybind.t.geometry.TriangleMesh)open3d.cpu.pybind.core.Tensor

Returns the max bound for point coordinates.

get_min_bound(self: open3d.cpu.pybind.t.geometry.TriangleMesh)open3d.cpu.pybind.core.Tensor

Returns the min bound for point coordinates.

is_empty(self)

Returns True iff the geometry is empty.

Returns

bool

rotate(self: open3d.cpu.pybind.t.geometry.TriangleMesh, R: open3d.cpu.pybind.core.Tensor, center: open3d.cpu.pybind.core.Tensor)open3d.cpu.pybind.t.geometry.TriangleMesh

Rotate points and normals (if exist).

scale(self: open3d.cpu.pybind.t.geometry.TriangleMesh, scale: float, center: open3d.cpu.pybind.core.Tensor)open3d.cpu.pybind.t.geometry.TriangleMesh

Scale points.

to(self: open3d.cpu.pybind.t.geometry.TriangleMesh, device: open3d.cpu.pybind.core.Device, copy: bool = False)open3d.cpu.pybind.t.geometry.TriangleMesh

Transfer the triangle mesh to a specified device.

to_legacy_triangle_mesh(self: open3d.cpu.pybind.t.geometry.TriangleMesh)open3d.cpu.pybind.geometry.TriangleMesh

Convert to a legacy Open3D TriangleMesh.

transform(self: open3d.cpu.pybind.t.geometry.TriangleMesh, transformation: open3d.cpu.pybind.core.Tensor)open3d.cpu.pybind.t.geometry.TriangleMesh

Transforms the points and normals (if exist).

translate(self: open3d.cpu.pybind.t.geometry.TriangleMesh, translation: open3d.cpu.pybind.core.Tensor, relative: bool = True)open3d.cpu.pybind.t.geometry.TriangleMesh

Translates points.

property triangles
property vertices