from_geometry method

from_geometry(, g)

Create a new PointCloud instance from a geometry object

Returns


@staticmethod
def from_geometry(g):
    ...
ParameterTypeDescription
gGeometry

from_geometry(, g, density)

Create a new point cloud instance from a geometry object. Density is the number of points per unit triangle(Unit triangle are the triangle with maximum surface area from the mesh)

Returns


@staticmethod
def from_geometry(g, density):
    ...
ParameterTypeDescription
gGeometryMesh or other geometry instance
densityintNumber of points per unit triangle

See Also