open3d.utility.Vector3dVector#
- class open3d.utility.Vector3dVector#
Convert float64 numpy array of shape
(n, 3)
to Open3D format.Example usage
import open3d import numpy as np pcd = open3d.geometry.PointCloud() np_points = np.random.rand(100, 3) # From numpy to Open3D pcd.points = open3d.utility.Vector3dVector(np_points) # From Open3D to numpy np_points = np.asarray(pcd.points)
- __init__(*args, **kwargs)#
Overloaded function.
__init__(self: open3d.utility.Vector3dVector) -> None
__init__(self: open3d.utility.Vector3dVector, arg0: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> None
__init__(self: open3d.utility.Vector3dVector, arg0: open3d.utility.Vector3dVector) -> None
Copy constructor
__init__(self: open3d.utility.Vector3dVector, arg0: collections.abc.Iterable) -> None
- append(self: open3d.utility.Vector3dVector, x: Annotated[numpy.typing.ArrayLike, numpy.float64, '[3, 1]']) None #
Add an item to the end of the list
- clear(self: open3d.utility.Vector3dVector) None #
Clear the contents
- count(self: open3d.utility.Vector3dVector, x: Annotated[numpy.typing.ArrayLike, numpy.float64, '[3, 1]']) int #
Return the number of times
x
appears in the list
- extend(*args, **kwargs)#
Overloaded function.
extend(self: open3d.utility.Vector3dVector, L: open3d.utility.Vector3dVector) -> None
Extend the list by appending all the items in the given list
extend(self: open3d.utility.Vector3dVector, L: collections.abc.Iterable) -> None
Extend the list by appending all the items in the given list
- insert(self: open3d.utility.Vector3dVector, i: SupportsInt, x: Annotated[numpy.typing.ArrayLike, numpy.float64, '[3, 1]']) None #
Insert an item at a given position.
- pop(*args, **kwargs)#
Overloaded function.
pop(self: open3d.utility.Vector3dVector) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], “[3, 1]”]
Remove and return the last item
pop(self: open3d.utility.Vector3dVector, i: typing.SupportsInt) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], “[3, 1]”]
Remove and return the item at index
i
- remove(self: open3d.utility.Vector3dVector, x: Annotated[numpy.typing.ArrayLike, numpy.float64, '[3, 1]']) None #
Remove the first item from the list whose value is x. It is an error if there is no such item.