Drawing
subsurfaceio.cross_section.render.drawing
Low-level DXF drawing helpers.
Functions:
| Name | Description |
|---|---|
add_rect |
Add a closed rectangular polyline to the modelspace. |
add_rect
add_rect(
msp: BaseLayout,
x_left: float,
x_right: float,
y_bottom: float,
y_top: float,
*,
layer: str,
close: bool = True
) -> LWPolyline
Add a closed rectangular polyline to the modelspace.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
msp
|
BaseLayout
|
DXF modelspace (or paper space) layout. |
required |
x_left
|
float
|
Left edge in section meters. |
required |
x_right
|
float
|
Right edge in section meters. |
required |
y_bottom
|
float
|
Bottom edge in section meters. |
required |
y_top
|
float
|
Top edge in section meters. |
required |
layer
|
str
|
DXF layer name. |
required |
close
|
bool
|
If True, close the polyline. |
True
|
Returns:
| Type | Description |
|---|---|
LWPolyline
|
The created lightweight polyline. |