stellarmesh.Geometry

class Geometry(solids: Sequence[Solid | TopoDS_Solid] | None = None, material_names: Sequence[str] | None = None, surfaces: Sequence[Face | Shell | TopoDS_Face | TopoDS_Shell] | None = None, surface_boundary_conditions: Sequence[str] | None = None)Source

Geometry, representing an ordered list of solids, to be meshed.

classmethod from_brep(filename: str, material_names: Sequence[str]) GeometrySource

Import model from a brep (cadquery, build123d native) file.

Parameters:
  • filename – File path to import.

  • material_names – Ordered list of material names matching solids in file.

Returns:

Model.

classmethod from_step(filename: str, material_names: Sequence[str]) GeometrySource

Import model from a step file.

Parameters:
  • filename – File path to import.

  • material_names – Ordered list of material names matching solids in file.

Returns:

Model.

classmethod import_brep(filename: str, material_names: Sequence[str]) GeometrySource

Import model from a brep (cadquery, build123d native) file.

Parameters:
  • filename – File path to import.

  • material_names – Ordered list of material names matching solids in file.

Returns:

Model.

classmethod import_step(filename: str, material_names: Sequence[str]) GeometrySource

Import model from a step file.

Parameters:
  • filename – File path to import.

  • material_names – Ordered list of material names matching solids in file.

Returns:

Model.

imprint() GeometrySource

Imprint faces of current geometry.

Returns:

A new geometry with the imprinted and merged geometry.