create_patch_from_dxf¶
- opstool.pre.section.create_patch_from_dxf(filepath, spline_delta=0.1, degrees_per_segment=1)[source]¶
An interface for the creation of Geometry objects from CAD .dxf files. See sectionproperties docs.
Parameters¶
- filepath: str|path
A path-like object for the dxf file.
- spline_delta: float, default = 0.1
Splines are not supported in shapely, so they are approximated as polylines, this argument affects the spline sampling rate.
- degrees_per_segment: float, default = 1
The number of degrees discretized as a single line segment.
Returns¶
- geometry:
- Geometry in
sectionproperties.