OCC: Open Cascade Connexion

Version: 2.8 (12/2018)

Author: Onera

Download pdf version.


Preamble

This module provides routines to use Open CASCADE capabilities within Cassiopee.

The current available function is for importing IGES files. Only CAD surfaces will be imported: other entities are ignored. This module manipulates both supported data structures, arrays, and pyTrees (see Converter Module).

File / arrays or File / pyTree conversion

C.convertIGESArrays: read an IGES file and return a list of arrays:
A = C.convertIGESArrays(fileName, h=0., chordal_err=0., growth_ratio=0.)
The file extension must be one of the regular extensions : .igs, .iges, .IGS or .IGES. Both ASCII and binary format are handled.

Option name Meaning Default value
h Specified absolute size of the mesh edges. 0. The algorithm will compute an appropriate value (one tenth of the edges length average over the model).
chordal_err Specified chordal error. 0. The algorithm uses in this case 2% of h value.
growth_ratio Specified growth_ratio. 0: constant mesh size, if > 1., specifies the growing ratio of mesh size from boundary to interior.

C.convertIGES2PyTree: read a file to a pyTree:
A = C.convertIGES2PyTree('in.iges')
Example of use: import an IGES file into a tree.


Return to main userguide