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 tracetrace_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 extrusionwidth (
Union[Quantity,str]) – If a groove type is passed asprofilethis parameter determines the width of the generated cross-section. For all other types it has no effect.
- Returns:
A Geometry class instance
- Return type:
Methods
Plot the geometry.
Rasterize the geometry.
Rasterize the geometry and get it as
SpatialDatainstance.Write the
Geometrydata into a CAD file.Attributes
Get the geometry's profile.
Get the geometry's trace.