weldx.Geometry.to_file¶
- Geometry.to_file(file_name, profile_raster_width, trace_raster_width)¶
Write the
Geometry
data into a CAD file.The geometry is rasterized and triangulated before the export. All file formats supported by
meshio
that are based on points and triangles can be used (For example.stl
or.ply
). Just add the corresponding extension to the file name. For further information about supported file formats refer to the [meshio
documentation](https://pypi.org/project/meshio/).- Parameters
file_name (
str
) – Name of the file. Add the extension of the desired file format.profile_raster_width – Target distance between the individual points of a profile
trace_raster_width – Target distance between the individual profiles on the trace