point_cloud#

ModelPlotter.point_cloud(points: int = 10, in_volume=False) dict#

Generate point cloud with available objects.

Parameters:
pointsint, optional

Number of points to generate. The default is 10.

in_volumebool, optional

Whether to plot inside the volume of selected object or on the surface. If True, generate points in volume. If False, generate points on surface. The default value is False.

Returns:
dict

Dictionary containing the point cloud for each object. Each entry has the object name as the key and a list with two elements: the path to the output .pts file and the pyvista.PolyData object.

Examples

>>> from ansys.aedt.core.visualization.plot.pyvista import ModelPlotter
>>> obj = ModelPlotter()
>>> obj.point_cloud(points=[0, 0, 0])