Closed BinWang0213 closed 4 years ago
Hi Bin,
That makes perfect sense. I could move the CLI code into plot methods for the classes. Do you have a deadline you're trying to meet? I'm currently working on another part of my thesis and was planning to get back to this after I defend. I can tackle this sooner though if needed.
Best, Kip
Hi Kip,
Thanks for your helps. There is no deadline for this . Now I can do it by digging out the CLI code. But the simplified interface can help other new users like me.
BTW, I'm working on meshing the generated micro-structure from your library using Gmsh. I may have more idea to improve your code once I'm finished.
Thanks again for your nice library, Bin
Hi Bin,
Thank you so much! I started looking at this a little more and realized it won't be too bad to implement right now.
I'd like to hear your ideas on using gmsh. I have also started using it in my work, since Triangle and TetGen make the mesh super refined in some corners.
I'll keep you posted on the plot changes, but I've started a branch (https://github.com/kip-hart/MicroStructPy/tree/dev-plot-methods).
Best, Kip
These features have been added to the source code and I created a new minor release for them (v1.2.0). I added two keyword arguments to the plot methods, material
and index_by
. From your example, you can use these like:
seeds.plot(material=['Matrix','Void'], color=['C0','C1'], ..., index_by='material')
Please let me know if you get the chance to try it out (described in more detail in #17) and feel free to re-open if there is still an issue.
Thanks for your nice Python code for such microstructure modeling.
Is your feature request related to a problem? Please describe. CLI interface can plot very nice seeds, polymesh and trimesh. But I need write very long code to reproduce the figure, here is an examples
Describe the solution you'd like