No, the problem is that Gmsh does import the volume but after it you ask it to perform either one or more of the OCC "healing" procedures and for some reason these procedures remove the volume.
See if you have something like Geometry.OCCFixDegenerated Geometry.OCCFixSmallEdges Geometry.OCCFixSmallFaces Geometry.OCCSewFaces in your default option files. -- jeremy ::: “It is really worth any amount of time and effort to get away from Windows if you are doing computational science.” https://lists.mcs.anl.gov/pipermail/petsc-users/2015-July/026388.html ::: On Wed, 2020-03-11 at 08:55 +0000, Vicini Alessandro wrote: > > Ok, the problem is that gmsh does not import a volume from > component8.step, only surfaces and lines, so “BoundingBox > Volume{v()}” fails. I need to manually generate the volume after > import of the step file, and then the rest of the script works. > > A. > > Da: gmsh Per conto di Don Van Kerkhoven > Inviato: venerdì 6 marzo 2020 22:46 > A: gmsh@onelab.info > Oggetto: Re: [Gmsh] R: R: Slice 3D to get 2D geometry > > Your error report looks what I get, if the script cannot locate > “component8.step” (see below). > I use Win7-64b-pro and Gmsh 4.5.4. > > > >>Error : Could not read file > 'D:\upgrades\software\gmsh\GmshMailingListExamples\component8.step' > >>Error : > 'D:\upgrades\software\gmsh\GmshMailingListExamples\2020_slicer_surfac > es.geo', line 14 : Uninitialized variable 'bbox[0]' > >>Error : > 'D:\upgrades\software\gmsh\GmshMailingListExamples\2020_slicer_surfac > es.geo', line 15 : Uninitialized variable 'bbox[1]' > >>Error : > 'D:\upgrades\software\gmsh\GmshMailingListExamples\2020_slicer_surfac > es.geo', line 16 : Uninitialized variable 'bbox[2]' > >>Error : > 'D:\upgrades\software\gmsh\GmshMailingListExamples\2020_slicer_surfac > es.geo', line 17 : Uninitialized variable 'bbox[3]' > >>Error : > 'D:\upgrades\software\gmsh\GmshMailingListExamples\2020_slicer_surfac > es.geo', line 18 : Uninitialized variable 'bbox[4]' > >>Error : > 'D:\upgrades\software\gmsh\GmshMailingListExamples\2020_slicer_surfac > es.geo', line 19 : Uninitialized variable 'bbox[5]' > >>Error : Rectangle with zero width or height > >>Error : Rectangle with zero width or height > >>Error : Rectangle with zero width or height > >>Error : Rectangle with zero width or height > >>Error : Rectangle with zero width or height > > > _______________________________________________ > gmsh mailing list > gmsh@onelab.info > > http://onelab.info/mailman/listinfo/gmsh > _______________________________________________ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh