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

Vicini Alessandro alessandro.vicini at sitael.com
Wed Mar 11 10:41:10 CET 2020


Right, I have "sew faces" active, which kills the volume....

A.


-----Messaggio originale-----
Da: gmsh Per conto di Jeremy Theler
Inviato: mercoledì 11 marzo 2020 10:22
A: gmsh at onelab.info
Oggetto: Re: [Gmsh] R: Slice 3D to get 2D geometry

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://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.mcs.anl.gov%2Fpipermail%2Fpetsc-users%2F2015-July%2F026388.html&data=02%7C01%7Calessandro.vicini%40sitael.com%7Ce3054d6ec6d44fd4f04208d7c59dc039%7Cc187ee014e4e40c8b342f82c8d699421%7C0%7C0%7C637195153882547529&sdata=lg3x9FdC1LW%2FNMU0rISDQ2lAzpU8eyo8rwoRJhmlKnQ%3D&reserved=0
:::


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 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_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 at onelab.info
> 
> https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fonela
> b.info%2Fmailman%2Flistinfo%2Fgmsh&data=02%7C01%7Calessandro.vicin
> i%40sitael.com%7Ce3054d6ec6d44fd4f04208d7c59dc039%7Cc187ee014e4e40c8b3
> 42f82c8d699421%7C0%7C0%7C637195153882547529&sdata=UDy%2BE2757vWOr0
> YtB8eQqVHXYglF2ks6jiSfc8z1vKU%3D&reserved=0
> 


_______________________________________________
gmsh mailing list
gmsh at onelab.info
https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fonelab.info%2Fmailman%2Flistinfo%2Fgmsh&data=02%7C01%7Calessandro.vicini%40sitael.com%7Ce3054d6ec6d44fd4f04208d7c59dc039%7Cc187ee014e4e40c8b342f82c8d699421%7C0%7C0%7C637195153882547529&sdata=UDy%2BE2757vWOr0YtB8eQqVHXYglF2ks6jiSfc8z1vKU%3D&reserved=0


More information about the gmsh mailing list