open3d.geometry.HalfEdgeTriangleMesh

class open3d.geometry.HalfEdgeTriangleMesh

HalfEdgeTriangleMesh inherits TriangleMesh class with the addition of HalfEdge data structure for each half edge in the mesh as well as related functions.

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.

  1. __init__(self: open3d.geometry.HalfEdgeTriangleMesh) -> None

Default constructor

  1. __init__(self: open3d.geometry.HalfEdgeTriangleMesh, arg0: open3d.geometry.HalfEdgeTriangleMesh) -> None

Copy constructor

boundary_half_edges_from_vertex(self: open3d.geometry.HalfEdgeTriangleMesh, vertex_index: int) → open3d.utility.IntVector

Query manifold boundary half edges from a starting vertex. If query vertex is not on boundary, empty vector will be returned.

boundary_vertices_from_vertex(self: open3d.geometry.HalfEdgeTriangleMesh, vertex_indexQuery manifold boundary vertices from a starting vertex. If query vertex is not on boundary, empty vector will be returned.: int) → open3d.utility.IntVector
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_half_edges(self: open3d.geometry.HalfEdgeTriangleMesh) → bool

Compute and update half edges, half edge can only be computed if the mesh is a manifold. Returns True if half edges are computed.

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_boundaries(self: open3d.geometry.HalfEdgeTriangleMesh) → List[open3d.utility.IntVector]

Returns a vector of boundaries. A boundary is a vector of vertices.

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 True if the mesh contains adjacency normals.

has_half_edges(self: open3d.geometry.HalfEdgeTriangleMesh) → bool

Returns True if half-edges have already been computed.

has_triangle_normals(self: open3d.geometry.TriangleMesh) → bool

Returns True if the mesh contains triangle normals.

has_triangles(self: open3d.geometry.TriangleMesh) → bool

Returns True if the mesh contains triangles.

has_vertex_colors(self: open3d.geometry.TriangleMesh) → bool

Returns True if the mesh contains vertex colors.

has_vertex_normals(self: open3d.geometry.TriangleMesh) → bool

Returns True if the mesh contains vertex normals.

has_vertices(self: open3d.geometry.TriangleMesh) → bool

Returns True if the mesh contains vertices.

is_empty(self: open3d.geometry.Geometry) → bool

Returns True iff 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 half_edges

List of HalfEdge in the mesh

property ordered_half_edge_from_vertex

Counter-clockwise ordered half-edges started from each vertex

property triangle_normals

Triangle normals.

Type

float64 array of shape (num_triangles, 3), use numpy.asarray() to access data

property triangles

List of triangles denoted by the index of points forming the triangle.

Type

int array of shape (num_triangles, 3), use numpy.asarray() to access data

property vertex_colors

RGB colors of vertices.

Type

float64 array of shape (num_vertices, 3), range [0, 1] , use numpy.asarray() to access data

property vertex_normals

Vertex normals.

Type

float64 array of shape (num_vertices, 3), use numpy.asarray() to access data

property vertices

Vertex coordinates.

Type

float64 array of shape (num_vertices, 3), use numpy.asarray() to access data