bluemira.geometry.solid

Wrapper for FreeCAD Part.Face objects

Classes

BluemiraSolid

Bluemira Solid class.

Module Contents

class bluemira.geometry.solid.BluemiraSolid(boundary: list[bluemira.geometry.shell.BluemiraShell], label: str = '')

Bases: bluemira.geometry.base.BluemiraGeo

Inheritance diagram of bluemira.geometry.solid.BluemiraSolid

Bluemira Solid class.

Parameters:
_create_solid(*, check_reverse: bool = True)

Creation of the solid

Returns:

Created FreeCAD solid.

Raises:

DisjointedSolidError – Solid is disjointed (2 solids created)

Parameters:

check_reverse (bool)

_create_shape()
Returns:

shape of the object as a single solid

Return type:

Part.Solid

classmethod _create(obj: bluemira.codes._freecadapi.apiSolid, label: str = '') BluemiraSolid
Parameters:
  • obj (bluemira.codes._freecadapi.apiSolid)

  • label (str)

Return type:

BluemiraSolid

property vertexes: bluemira.geometry.coordinates.Coordinates

The vertexes of the solid.

Return type:

bluemira.geometry.coordinates.Coordinates

property edges: tuple[bluemira.geometry.wire.BluemiraWire]

The edges of the solid.

Return type:

tuple[bluemira.geometry.wire.BluemiraWire]

property wires: tuple[bluemira.geometry.wire.BluemiraWire]

The wires of the solid.

Return type:

tuple[bluemira.geometry.wire.BluemiraWire]

property faces: tuple[bluemira.geometry.face.BluemiraFace]

The faces of the solid.

Return type:

tuple[bluemira.geometry.face.BluemiraFace]

property shells: tuple[bluemira.geometry.shell.BluemiraShell]

The shells of the solid.

Return type:

tuple[bluemira.geometry.shell.BluemiraShell]

property solids: tuple[BluemiraSolid]

The solids of the solid. By definition a tuple of itself.

Return type:

tuple[BluemiraSolid]