- All extrusion commands now return a list of 2 numbers (instead of 1): the first, as before, is the number of the "top" of the extruded region (i.e., a point for extrude point, a line for extrude line, ...), the second is the number of the "body" of the extruded region (i.e., a line for extrude point, a surface for extrude line, ...). - "Extrude Surface" now always creates a new volume (automatically), EVEN WHEN THERE IS NO LAYERS SPECIFICATION. This makes it consistent with "Extrude Point" and "Extrude Line", which always create new curves and surfaces, respectively. Important Note: you will have to modify your old .geo files to avoid duplicate volume definitions if you use "Extrude Surface" without extruding the mesh (i.e., without the "Layers" command). These duplicate volumes would be harmless, but they would srew up your physical volume definitions later on... * Solution 1: use the new volumes (recommended). To do this, just remove your old extra volume definitions and let Gmsh create the extruded volumes for you. (To retrieve the volume number created by Gmsh, use "aa[] = Extrude Surface {...};;": the volume number is "aa[1]".) * Solution 2: keep the old volumes. a) clean way: retrieve the new volume number (aa[] = Extrude Surface {...};;) and delete the new volume with "Delete { Volume aa[1]; }" b) dirty (but handy) way: since, in order to create the new volumes with the less impact possible, Gmsh uses "low" numbers (actually, forcing "Geometry.OldNewreg=0") for the new volumes, just remove all "low number volumes". For example, if you have 4 "Extrude Surface" in your file, you can then just do "Delete{ Volume {1:4}; }" Voila :-)
Showing
- Geo/CAD.cpp 56 additions, 23 deletionsGeo/CAD.cpp
- Geo/CAD.h 1 addition, 1 deletionGeo/CAD.h
- Mesh/3D_Extrude.cpp 9 additions, 9 deletionsMesh/3D_Extrude.cpp
- Parser/Gmsh.tab.cpp 312 additions, 216 deletionsParser/Gmsh.tab.cpp
- Parser/Gmsh.y 121 additions, 25 deletionsParser/Gmsh.y
- Parser/Gmsh.yy.cpp 2 additions, 2 deletionsParser/Gmsh.yy.cpp
- TODO 33 additions, 1 deletionTODO
- benchmarks/bugs/bug-gcc2.95-clscale1.8.geo 5 additions, 2 deletionsbenchmarks/bugs/bug-gcc2.95-clscale1.8.geo
- benchmarks/bugs/disk.geo 0 additions, 3 deletionsbenchmarks/bugs/disk.geo
- benchmarks/bugs/fil.geo 3 additions, 1 deletionbenchmarks/bugs/fil.geo
- benchmarks/bugs/p19-bug.geo 0 additions, 13 deletionsbenchmarks/bugs/p19-bug.geo
- benchmarks/bugs/piece-bad.geo 1 addition, 8 deletionsbenchmarks/bugs/piece-bad.geo
- benchmarks/bugs/t2.geo 0 additions, 31 deletionsbenchmarks/bugs/t2.geo
- benchmarks/extrude/Cube-02-ExtrMesh.geo 0 additions, 2 deletionsbenchmarks/extrude/Cube-02-ExtrMesh.geo
- benchmarks/extrude/Cube-05-ExtrMesh.geo 1 addition, 4 deletionsbenchmarks/extrude/Cube-05-ExtrMesh.geo
- benchmarks/extrude/Cube-06-ExtrMesh.geo 0 additions, 1 deletionbenchmarks/extrude/Cube-06-ExtrMesh.geo
- benchmarks/extrude/hybrid.geo 1 addition, 4 deletionsbenchmarks/extrude/hybrid.geo
- benchmarks/extrude/p7-ExtrMesh.geo 0 additions, 5 deletionsbenchmarks/extrude/p7-ExtrMesh.geo
- demos/piece.geo 0 additions, 8 deletionsdemos/piece.geo
- doc/VERSIONS 5 additions, 3 deletionsdoc/VERSIONS
Loading
Please register or sign in to comment