open3d.geometry.TriangleMesh¶
-
class
open3d.geometry.TriangleMesh¶ TriangleMesh class. Triangle mesh contains vertices and triangles represented by the indices to the vertices. Optionally, the mesh may also contain triangle normals, vertex normals and vertex colors.
-
class
Type¶ Enum class for Geometry types.
-
HalfEdgeTriangleMesh= Type.HalfEdgeTriangleMesh¶
-
Image= Type.Image¶
-
LineSet= Type.LineSet¶
-
PointCloud= Type.PointCloud¶
-
TriangleMesh= Type.TriangleMesh¶
-
Unspecified= Type.Unspecified¶
-
VoxelGrid= Type.VoxelGrid¶
-
-
__init__(*args, **kwargs)¶ Overloaded function.
__init__(self: open3d.geometry.TriangleMesh) -> None
Default constructor
__init__(self: open3d.geometry.TriangleMesh, arg0: open3d.geometry.TriangleMesh) -> None
Copy constructor
-
clear(self: open3d.geometry.Geometry) → None¶ Clear all elements in the geometry.
-
compute_adjacency_list(self: open3d.geometry.TriangleMesh) → None¶ Function to compute adjacency list, call before adjacency list is needed
-
compute_triangle_normals(self: open3d.geometry.TriangleMesh, normalized: bool = True) → None¶ Function to compute triangle normals, usually called before rendering
-
compute_vertex_normals(self: open3d.geometry.TriangleMesh, normalized: bool = True) → None¶ Function to compute vertex normals, usually called before rendering
-
dimension(self: open3d.geometry.Geometry) → int¶ Returns whether the geometry is 2D or 3D.
-
get_geometry_type(self: open3d.geometry.Geometry) → open3d::geometry::Geometry::GeometryType¶ Returns one of registered geometry types.
-
get_max_bound(self: open3d.geometry.Geometry3D) → numpy.ndarray[float64[3, 1]]¶ Returns max bounds for geometry coordinates.
-
get_min_bound(self: open3d.geometry.Geometry3D) → numpy.ndarray[float64[3, 1]]¶ Returns min bounds for geometry coordinates.
-
has_adjacency_list(self: open3d.geometry.TriangleMesh) → bool¶ Returns
Trueif the mesh contains adjacency normals.
-
has_triangle_normals(self: open3d.geometry.TriangleMesh) → bool¶ Returns
Trueif the mesh contains triangle normals.
-
has_triangles(self: open3d.geometry.TriangleMesh) → bool¶ Returns
Trueif the mesh contains triangles.
-
has_vertex_colors(self: open3d.geometry.TriangleMesh) → bool¶ Returns
Trueif the mesh contains vertex colors.
-
has_vertex_normals(self: open3d.geometry.TriangleMesh) → bool¶ Returns
Trueif the mesh contains vertex normals.
-
has_vertices(self: open3d.geometry.TriangleMesh) → bool¶ Returns
Trueif the mesh contains vertices.
-
is_empty(self: open3d.geometry.Geometry) → bool¶ Returns
Trueiff the geometry is empty.
-
normalize_normals(self: open3d.geometry.TriangleMesh) → None¶ Normalize both triangle normals and vertex normals to legnth 1.
-
paint_uniform_color(self: open3d.geometry.TriangleMesh, arg0: numpy.ndarray[float64[3, 1]]) → None¶ Assign uniform color to all vertices.
-
purge(self: open3d.geometry.TriangleMesh) → None¶ Function to remove duplicated and non-manifold vertices/triangles
-
transform(self: open3d.geometry.Geometry3D, arg0: numpy.ndarray[float64[4, 4]]) → None¶ Apply transformation (4x4 matrix) to the geometry coordinates.
-
HalfEdgeTriangleMesh= Type.HalfEdgeTriangleMesh¶
-
Image= Type.Image¶
-
LineSet= Type.LineSet¶
-
PointCloud= Type.PointCloud¶
-
TriangleMesh= Type.TriangleMesh¶
-
Unspecified= Type.Unspecified¶
-
VoxelGrid= Type.VoxelGrid¶
-
property
adjacency_list¶ The set
adjacency_list[i]contains the indices of adjacent vertices of vertex i.- Type
List of Sets
-
property
triangle_normals¶ Triangle normals.
- Type
float64array of shape(num_triangles, 3), usenumpy.asarray()to access data
-
property
triangles¶ List of triangles denoted by the index of points forming the triangle.
- Type
intarray of shape(num_triangles, 3), usenumpy.asarray()to access data
-
property
vertex_colors¶ RGB colors of vertices.
- Type
float64array of shape(num_vertices, 3), range[0, 1], usenumpy.asarray()to access data
-
property
vertex_normals¶ Vertex normals.
- Type
float64array of shape(num_vertices, 3), usenumpy.asarray()to access data
-
property
vertices¶ Vertex coordinates.
- Type
float64array of shape(num_vertices, 3), usenumpy.asarray()to access data
-
class