You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great work! I have just started to work with Gmsh and thought a Python interface would be quite nice. Initially I wanted to develop it myself but then I found your package. I have some suggestions for a few small additions which would be much appreciated.
Currently, I want to mesh a rectangular domain with a polygonal-shaped hole (e.g. flow around a cylinder, airfoil, etc.). For this I need two Line Loops: one for the rectangle and one for the polygon. Then I define a Planar Surface using these two loops, et voila!
This can be done using your package quite straightforwardly by first creating points, then lines, then line loops and finally the planar surface. No problem. However, because you already provide the very sweet method add_polygon, I suggest you to also add something like add_polygon_loop. This way, the user does not have to create points and lines manually just for having a hole in a surface.
Has this functionality been removed? I cannot seem to find the add_polygon_loop function. Edit: this 'hollow' functionality seems to have been replaced by occ.Geometry.boolean_difference!
Hi @nschloe,
Great work! I have just started to work with Gmsh and thought a Python interface would be quite nice. Initially I wanted to develop it myself but then I found your package. I have some suggestions for a few small additions which would be much appreciated.
Currently, I want to mesh a rectangular domain with a polygonal-shaped hole (e.g. flow around a cylinder, airfoil, etc.). For this I need two
Line Loops
: one for the rectangle and one for the polygon. Then I define aPlanar Surface
using these two loops, et voila!This can be done using your package quite straightforwardly by first creating points, then lines, then line loops and finally the planar surface. No problem. However, because you already provide the very sweet method
add_polygon
, I suggest you to also add something likeadd_polygon_loop
. This way, the user does not have to create points and lines manually just for having a hole in a surface.So you already have this:
from that you can create
add_polygon_loop
with no effort at all:Similar things can also be done for all other methods that provide planar shapes (e.g. for the circle, rectangle etc.).
I am going to fork your project and add this for the polygon case. I will send you a pull request when I'm done. Let me know what you think of this.
The text was updated successfully, but these errors were encountered: