Opening
- class xgbxml.xgbxml.Opening[source]
- get_area()[source]
Calculates the area of the opening.
- Returns:
The area of the Opening.
- Return type:
float
- get_shell()[source]
Returns the shell of the outer polyloop of the opening.
- The following sources are tried in order:
PlanarGeometry
RectangularGeometry/PolyLoop
RectangularGeoemetry… from height and width
- Return type:
tuple(tuple(float))
- render(ax=None, set_lims=True, outline_kwargs=None, fill_kwargs=None)[source]
Renders the Opening in 3D using matplotlib.
- Parameters:
ax (matplotlib.axes._subplots.Axes3DSubplot) – A matplotlib 3D Axes instance. Optional, if not supplied then an axis is created and returned.
set_lims (bool) – If True, then the x, y and z axis limits are set automatically based on the geometry being rendered.
outline_kwargs – matplotlib keywork arguments for formatting the outlines of the openings (passed to ax.plot method).
surface_kwargs – matplotlib keywork arguments for formatting the surface rendering (passed to Poly3DCollection method).
- Returns:
The axis instance.
- Return type:
matplotlib.axes._subplots.Axes3DSubplot