-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic mesh examples #99
Comments
At the moment you can't really create a mesh by simply passing e.g. |
But what about using the using Inti
using Gmsh
filename = joinpath(Inti.PROJECT_ROOT,"docs", "assets", "piece.msh")
msh = Inti.import_mesh(filename) |
How many methods would I need to implement to have my own
That's a possible workaround, but it would be nice to test my hydrodynamical meshes without a detour by Gmsh. |
Doesn't this issue expand the scope of Inti beyond integral equations? The docs are explicit that we view meshing as outside our scope. |
I think this is well within the scope of stuff we can/should cover. |
You would need to implement
It would be easy to create a constructor like But even simpler: is there a mesh format you have in mind? FWIW, this could be as easy as extending |
Call the function
I have a couple of STL files, so you can start by providing some interface with https://github.com/JuliaIO/MeshIO.jl |
Sure, that is possible. But I am not sure how useful it would be. Do people really create a mesh by hand and pass the points? It is more likely the points are already in some file right?
I think STL files are already supported. I just tried the following on a simple using Inti
using Gmsh
msh = Inti.import_mesh("cube.stl") and it worked. As long as |
For basic meshes, users (like myself) might want to use their own loaders or mesh-tweaking-function. I would be nice to have either a simple API or (the initial question of this thread) an example of how to handle
👍 I keep underestimating Gmsh. |
Fair enough, I guess I see your use case now... |
Inti's mesh type looks very powerful, but seems a bit complicated for my basic needs.
Could you provide some basic examples of just defining a 2D boundary from a list of point, or a 3D surface from a list of triangles of shape
nb_faces × 3 × 3
?The text was updated successfully, but these errors were encountered: