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
List of unique vertices #21
Comments
This is what I'm thinking. It's messy !
` |
After basic testing this seems to be working
` |
I've found that the rounding errors can be quite large for the default configuration, where points are stored as floats. In some cases the error is larger than some edge lengths, which messes up the diagram. I switched to using doubles for JCV_REAL_TYPE and that fixed it. This is for very large diagrams (over 100,000 cells). It may not be relevant for you. |
Thanks for the heads up
…On Thu., 21 Jun. 2018, 4:53 pm david94133, ***@***.***> wrote:
I've found that the rounding errors can be quite large for the default
configuration, where points are stored as floats. In some cases the error
is larger than some edge lengths, which messes up the diagram. I switched
to using doubles for JCV_REAL_TYPE and that fixed it.
This is for very large diagrams (over 100,000 cells). It may not be
relevant for you.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#21 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAYMan2P4XNk05y049r-T2G3RJNpK_Tuks5t-7NrgaJpZM4UyKcF>
.
|
I'll keep this in mind in the future, to see if I can add this in a good way in perhaps some example code. |
One more issue :/
Because I want to create a mesh, I need a list of unique vertices. These are stored as x,y points. Any idea how to do this ?
My naive algorithm would go as follows:
Now we have a list of unique vertices ...
Not very elegant. Any better ideas ?
Also - can I just use an equals check on the positions (x1==x2) even though they are floats ?
The text was updated successfully, but these errors were encountered: