The geometry to mesh is defined by a set of independant shapes, these shapes are external referencies to the GEOM module of SALOME. The shapes of this set can be faces and/or solids. In Hexablock module you can import geometrical objects from BREP, IGES, STEP files.
The TUI script to import geometrical objects from a BREP file is:
import os
import GEOM
import SALOMEDS
import hexablock
# Example of import from STEP
# get a path of the STEP file containing the CAD
STEP_PATH = os.path.expandvars("$HEXABLOCK_ROOT_DIR/bin/salome/crank.stp")
The following images depict different CADs for the construction of models:
Connecting rod
(see Example: Python script for a connecting rod)
Bridle
Intersection of cylinders
Bent (curved) pipe