Possible to export a vector of all (not just fixed) unique edges in a triangulation? #54
-
Hi, my question is in the title. I already have a pretty fast way to do this as a post-processing step, but I was wondering if there was a neater built-in way that I was missing. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
@ilia-nikiforov thank you for the question. You are right: edges are not stored explicitly and need to be extracted from the triangles. There is no built-in way of doing so. It could be added to the API as a free function, I think it could be useful. How do you extract edges now? |
Beta Was this translation helpful? Give feedback.
-
@artem-ogre If you are wondering why I need the edges, there is a very highly cited method for creating variable-density meshes that involves a mechanics analogy where the edges of a triangulation are springs, and the desired local density is achieved by minimizing the force of those springs: Thank you for your work! |
Beta Was this translation helpful? Give feedback.
@ilia-nikiforov thank you for the question. You are right: edges are not stored explicitly and need to be extracted from the triangles. There is no built-in way of doing so. It could be added to the API as a free function, I think it could be useful. How do you extract edges now?