weldx.geometry.SpatialData.from_file#

static SpatialData.from_file(file_name, units='mm')#

Create an instance from a file.

Parameters:
  • file_name (str | Path) – Name of the source file.

  • units (str) – Length unit assigned to data.

Returns:

New SpatialData instance

Return type:

SpatialData