Surface

class xgbxml.xgbxml.Surface[source]
copy_opening(opening, tolerance=0.01)[source]
get_Spaces()[source]

Returns the space elements adjacent to the surface.

get_holes()[source]
get_polygon()[source]

Returns a Polygon of the outer polyloop of the surface.

The following sources are tried in order:
  • PlanarGeometry

  • RectangularGeometry/PolyLoop

  • RectangularGeoemetry… from height and width

Return type

tuple(tuple(float))

get_shell()[source]

Returns a Polygon 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))