weldx.geometry.Geometry#

class weldx.geometry.Geometry(profile, trace_or_length, width='10mm')#

Defines a 3 dimensional geometry by extrusion of a 2 dimensional profile.

The path of the extrusion can be chosen arbitrarily. It is also possible to vary the profile along the extrusion path.

Construct a geometry.

Parameters:
  • profile (Profile | VariableProfile | IsoBaseGroove) – Profile that is used as cross section along the specified trace

  • trace_or_length (Trace | Quantity) – The path that is used to extrude the given profile or a quantity that specifies the length of a linear, horizontal extrusion

  • width (Union[Quantity, str]) – If a groove type is passed as profile this parameter determines the width of the generated cross-section. For all other types it has no effect.

Returns:

A Geometry class instance

Return type:

Geometry

Methods

plot

Plot the geometry.

rasterize

Rasterize the geometry.

spatial_data

Rasterize the geometry and get it as SpatialData instance.

to_file

Write the Geometry data into a CAD file.

Attributes

profile

Get the geometry's profile.

trace

Get the geometry's trace.