weldx.geometry.SpatialData

class weldx.geometry.SpatialData(coordinates, triangles=None, attributes=None)

Represent 3D point cloud data with optional triangulation.

Parameters
  • coordinates (ndarray) – 3D array of point data.

  • triangles (Optional[ndarray]) – 3D Array of triangulation connectivity

  • attributes (Optional[Dict[str, ndarray]]) – optional dictionary with additional attributes to store alongside data

Methods

from_file

Create an instance from a file.

from_geometry_raster

Triangulate rasterized Geometry Profile.

plot

Plot the spatial data.

write_to_file

Write spatial data into a file.

Attributes

attributes

triangles