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: [email protected]
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_surfaces.geo',
>>line 14 : Uninitialized variable 'bbox[0]'
>>Error :
>>'D:\upgrades\software\gmsh\GmshMailingListExamples\2020_slicer_surfaces.geo',
>>line 15 : Uninitialized variable 'bbox[1]'
>>Error :
>>'D:\upgrades\software\gmsh\GmshMailingListExamples\2020_slicer_surfaces.geo',
>>line 16 : Uninitialized variable 'bbox[2]'
>>Error :
>>'D:\upgrades\software\gmsh\GmshMailingListExamples\2020_slicer_surfaces.geo',
>>line 17 : Uninitialized variable 'bbox[3]'
>>Error :
>>'D:\upgrades\software\gmsh\GmshMailingListExamples\2020_slicer_surfaces.geo',
>>line 18 : Uninitialized variable 'bbox[4]'
>>Error :
>>'D:\upgrades\software\gmsh\GmshMailingListExamples\2020_slicer_surfaces.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
[email protected]
http://onelab.info/mailman/listinfo/gmsh