Computing mesh with toMesh and then determining normals #730
Unanswered
andre-caldas
asked this question in
Q&A
Replies: 2 comments
-
|
Of course, it would be more "generic" if we constructed and passed the iterator to |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@filiatra would you have a suggestion here? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am really, really new to G+Smo. I am sorry if I say something silly. :-)
The method
gsSurface<T>::toMesh()creates agsGridIteratorfor the surface domain toaddVertexto the mesh. Then it computes faces.If after calling
toMesh(), I want to compute the normals for each vertex. Of course, I could simply reproduce the internals oftoMesh, and construct the samegsGridIteratorand compute the mesh at the iterated points. However, I do not feel that depending on the internals oftoMesh()is a good thing.I would like to know (or propose) an elegant solution to this problem. Maybe
toMesh()could return a copy of the iterator...What do you think? Am I missing anything?
Reference:
gismo/src/gsCore/gsSurface.hpp
Line 25 in a9917ca
PS: It is interesting that we do not want to use the four parameter version of
addFaceinside the double loop.Beta Was this translation helpful? Give feedback.
All reactions