open3d.geometry.TetraMesh¶
-
class
open3d.geometry.
TetraMesh
¶ TetraMesh class. Tetra mesh contains vertices and tetrahedra represented by the indices to the vertices.
-
class
Type
¶ Enum class for Geometry types.
-
HalfEdgeTriangleMesh
= Type.HalfEdgeTriangleMesh¶
-
Image
= Type.Image¶
-
LineSet
= Type.LineSet¶
-
PointCloud
= Type.PointCloud¶
-
RGBDImage
= Type.RGBDImage¶
-
TetraMesh
= Type.TetraMesh¶
-
TriangleMesh
= Type.TriangleMesh¶
-
Unspecified
= Type.Unspecified¶
-
VoxelGrid
= Type.VoxelGrid¶
-
-
__init__
(*args, **kwargs)¶ Overloaded function.
__init__(self: open3d.geometry.TetraMesh) -> None
Default constructor
__init__(self: open3d.geometry.TetraMesh, arg0: open3d.geometry.TetraMesh) -> None
Copy constructor
-
clear
(self)¶ Clear all elements in the geometry.
- Returns
open3d.geometry.Geometry
-
static
create_from_point_cloud
(point_cloud)¶ Function to create a tetrahedral mesh from a point cloud.
- Parameters
point_cloud (open3d.geometry.PointCloud) – A PointCloud.
- Returns
open3d.geometry.TetraMesh
-
dimension
(self)¶ Returns whether the geometry is 2D or 3D.
- Returns
int
-
extract_triangle_mesh
(self, values, level)¶ Function that generates a triangle mesh of the specified iso-surface.
- Parameters
values (open3d.utility.DoubleVector) – Vector with a scalar value for each vertex in the tetra mesh
level (float) – A scalar which defines the level-set to extract
- Returns
open3d.geometry.TriangleMesh
-
get_axis_aligned_bounding_box
(self)¶ Returns an axis-aligned bounding box of the geometry.
- Returns
open3d.geometry.AxisAlignedBoundingBox
-
get_center
(self)¶ Returns the center of the geometry coordinates.
- Returns
numpy.ndarray[float64[3, 1]]
-
get_geometry_type
(self)¶ Returns one of registered geometry types.
- Returns
open3d.geometry.Geometry.GeometryType
-
get_max_bound
(self)¶ Returns max bounds for geometry coordinates.
- Returns
numpy.ndarray[float64[3, 1]]
-
get_min_bound
(self)¶ Returns min bounds for geometry coordinates.
- Returns
numpy.ndarray[float64[3, 1]]
-
get_oriented_bounding_box
(self)¶ Returns an oriented bounding box of the geometry.
- Returns
open3d.geometry.OrientedBoundingBox
-
has_tetras
(self)¶ Returns
True
if the mesh contains tetras.- Returns
bool
-
has_vertices
(self)¶ Returns
True
if the mesh contains vertices.- Returns
bool
-
is_empty
(self)¶ Returns
True
iff the geometry is empty.- Returns
bool
-
remove_degenerate_tetras
(self)¶ Function that removes degenerate tetras, i.e., tetras that references a single vertex multiple times in a single tetra. They are usually the product of removing duplicated vertices.
- Returns
open3d.geometry.TetraMesh
-
remove_duplicated_tetras
(self)¶ Function that removes duplicated tetras, i.e., removes tetras that reference the same four vertices, independent of their order.
- Returns
open3d.geometry.TetraMesh
-
remove_duplicated_vertices
(self)¶ Function that removes duplicated vertices, i.e., vertices that have identical coordinates.
- Returns
open3d.geometry.TetraMesh
-
remove_unreferenced_vertices
(self)¶ This function removes vertices from the tetra mesh that are not referenced in any tetra of the mesh.
- Returns
open3d.geometry.TetraMesh
-
rotate
(self, rotation, center=True, type=RotationType.XYZ)¶ Apply rotation to the geometry coordinates and normals.
- Parameters
rotation (numpy.ndarray[float64[3, 1]]) – A 3D vector that either defines the three angles for Euler rotation, or in the axis-angle representation the normalized vector defines the axis of rotation and the norm the angle around this axis.
center (bool, optional, default=True) – If true, then the rotation is applied to the centered geometry
type (open3d.geometry.RotationType, optional, default=RotationType.XYZ) – Type of rotation, i.e., an Euler format, or axis-angle.
- Returns
open3d.geometry.Geometry3D
-
scale
(self, scale, center=True)¶ Apply scaling to the geometry coordinates.
- Parameters
scale (float) – The scale parameter that is multiplied to the points/vertices of the geometry
center (bool, optional, default=True) – If true, then the scale is applied to the centered geometry
- Returns
open3d.geometry.Geometry3D
-
transform
(self, arg0)¶ Apply transformation (4x4 matrix) to the geometry coordinates.
- Parameters
arg0 (numpy.ndarray[float64[4, 4]]) –
- Returns
open3d.geometry.Geometry3D
-
translate
(self, translation, relative=True)¶ Apply translation to the geometry coordinates.
- Parameters
translation (numpy.ndarray[float64[3, 1]]) – A 3D vector to transform the geometry
relative (bool, optional, default=True) – If true, the translation vector is directly added to the geometry coordinates. Otherwise, the center is moved to the translation vector.
- Returns
open3d.geometry.Geometry3D
-
HalfEdgeTriangleMesh
= Type.HalfEdgeTriangleMesh¶
-
Image
= Type.Image¶
-
LineSet
= Type.LineSet¶
-
PointCloud
= Type.PointCloud¶
-
RGBDImage
= Type.RGBDImage¶
-
TetraMesh
= Type.TetraMesh¶
-
TriangleMesh
= Type.TriangleMesh¶
-
Unspecified
= Type.Unspecified¶
-
VoxelGrid
= Type.VoxelGrid¶
-
property
tetras
¶ List of tetras denoted by the index of points forming the tetra.
- Type
int64
array of shape(num_tetras, 4)
, usenumpy.asarray()
to access data
-
property
vertices
¶ Vertex coordinates.
- Type
float64
array of shape(num_vertices, 3)
, usenumpy.asarray()
to access data
-
class