Skip to content
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

generation from array #203

Open
MHenrich1990 opened this issue Nov 20, 2022 · 4 comments · May be fixed by #210
Open

generation from array #203

MHenrich1990 opened this issue Nov 20, 2022 · 4 comments · May be fixed by #210

Comments

@MHenrich1990
Copy link

Hi,
for the generation of microstructure models (representative volume elements) I'm using numpy arrays. The meshing with the generate_from_array function works fine. However, it would be great if there was an option to define feature edges which can be used to force the elemetnts on the edges of the array, to actually have a cube. otherwise the mesh looks like this:

Pygalmesh_test

Basically, what I need is a cubic shape for the surface of the array mesh as shown here:

Pygalmesh_pure_array

Is this somehow possible?
Thanks!

@hm7788
Copy link

hm7788 commented Jul 26, 2023

I was also looking for the same feature edge solution. Has anyone figured it out yet?

@lrineau
Copy link

lrineau commented Jul 27, 2023

In CGAL_5.6-beta1, there is that feature. See section 4.6.3 Domains from Segmented 3D Images, with 1D Features of the Mesh_3 chapter.

Edit: sorry I thought that was an issue of https://github.com/CGAL/cgal. In pygalmesh, I do not know if that possibility is available, or will be soon.

@hm7788
Copy link

hm7788 commented Aug 4, 2023

thank you, good to know such function in CGAL. I don't see such a function in pygalmesh yet, I am not quite familiar with C++, so it might be challenging to implement for me. Hopefully someone could wrap it in a python version someday..

@jmetancelin
Copy link

I was also looking for proper edges detection.
PR #210 is extending the python interface to support that 1D feature detection from CGAL C++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants