[Gmsh] Slice 3D to get 2D geometry

Christophe Geuzaine cgeuzaine at uliege.be
Tue Mar 10 12:20:12 CET 2020



> On 10 Mar 2020, at 08:48, Vicini Alessandro <alessandro.vicini at sitael.com> wrote:
> 
> In my case component8.step is correctly read, see the complete log below. But I get those errors anyway…
>  
>  
> Info    : Reading 'D:[008]-EsempiGmsh\slicer_surfaces.geo'...
> Info    :  - Label 'Shapes/Rhino Product' (3D)
> Info    : Healing shapes (tolerance: 1e-008)
> Info    :  - Fixing degenerated edges and faces
> Info    :  - Sewing faces
> Info    : Done healing shapes (0.046875 s):
> Info    :  - Compounds          : 0 (0)
> Info    :  - Composite solids   : 0 (0)
> Info    :  - Solids             : 0 (1)


You must have OpenCASCADE shape healing applied by default, which destroys thee solid (0 solid after the healing).

Christophe



> Info    :  - Shells             : 1 (1)
> Info    :  - Wires              : 22 (22)
> Info    :  - Faces              : 21 (21)
> Info    :  - Edges              : 48 (48)
> Info    :  - Vertices           : 28 (28)
> Info    :  - Total surface area : 6368.8 (6368.8)
> Error   : 'D:[008]-EsempiGmsh\slicer_surfaces.geo', line 12 : Uninitialized variable 'bbox[0]'
> Error   : 'D:[008]-EsempiGmsh\slicer_surfaces.geo', line 13 : Uninitialized variable 'bbox[1]'
> Error   : 'D:[008]-EsempiGmsh\slicer_surfaces.geo', line 14 : Uninitialized variable 'bbox[2]'
> Error   : 'D:[008]-EsempiGmsh\slicer_surfaces.geo', line 15 : Uninitialized variable 'bbox[3]'
> Error   : 'D:[008]-EsempiGmsh\slicer_surfaces.geo', line 16 : Uninitialized variable 'bbox[4]'
> Error   : 'D:[008]-EsempiGmsh\slicer_surfaces.geo', line 17 : 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
> 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   : Unknown OpenCASCADE entity of dimension 3 with tag 1
> Error   : 'D:[008]-EsempiGmsh\slicer_surfaces.geo', line 30 : Could not apply boolean operator
> Info    : Done reading 'D:[008]-EsempiGmsh\slicer_surfaces.geo'
>  
>  
> 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
>  
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine






More information about the gmsh mailing list