Hey all! I have a problem with STEP/ IGES-file-export from pythonOCC. I can reimport such files neither into cubit nor SALOME, I suspect I am just missing something.
Basically, here is what I do: GENERATION OF SURFACES - I designed complex surfaces and calculated their coordinates (for those who use SALOME, there is a compressed full .hdf-study here: https://www.dropbox.com/sh/0ou0p9i9g5iurjb/m2Joqsu2ai?m , plus step-Files of one of the problematic sections > bifurcation) >> GENERAL INFO ABOUT THE STRUCTURE: it is a binary or fractal distribution >> structure for a gas-liquid-flow. Means there is one inlet channel which bifurcates into two branches, each one of these will bifurcate into two more, and so on. This system results in 2**N outlets for N 'bifurcation levels' (hence 'binary' structure). The basic structural comparison is to systems in nature: bloodvessels in the lung, branching tree, etc. . GENERATION IN PYTHONOCC: - divide the surfaces in smaller patches so to fit their comprising points into TColgp_Array2OfPnt - from each TColgp-pole-patch build one Geom_BezierSurface - puzzle all the BezierSurfaces into a TColGeom_Array2OfBezierSurface - convert the TColGeom_Array comprising all BezierSurfaces with GeomConvert_CompBezierSurfacesToBSplineSurface - from that build a Geom_BSplineSurface - BSplineSurface is the basis for the final BRepBuilderAPI_MakeFace - FACE - export the BRepBuilderAPI_MakeFace.Shape() PROBLEM: - no error-messages on export using e.g. utils.shape_to_file(), OCC.STEPControl, OCC.IGESControl, everything seems fine - there is data in the files exported from pythonocc, looks like regular CAD-file holding coordinates and so on (but I am no expert on how they must be structured) >> BUT CANNOT OPEN GENERATED FILES IN OTHER PROGRAMS* (step and iges) - CAN >> ONLY OPEN IF brep OR stl IS USED. * Cubit + Salome tell me, there is no geometrical data in the step/iges So right now, I take these breps, load them into Salome and export them as step/ iges from there. I would really like it to work smoothly using pythonOCC. What am I missing? Is there a problem because I am not exporting a solid, only a face? Why don't Cubit or Salome recognize the data in the step/iges-files as geometrical at all? Any help and insight would be greatly appreciated. Many thanks in advance Nina
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users