[Gmsh] R: Slice 3D to get 2D geometry

Vicini Alessandro alessandro.vicini at sitael.com
Wed Mar 11 09:55:20 CET 2020


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 at 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_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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20200311/8f3c837b/attachment.html>


More information about the gmsh mailing list