noeska hat geschrieben: Looking at the wiki: 2 benachbarte Flächen vom Objekt, bei denen man untersuchen will ob ihre Zwischenkante zur Silhouette gehört. Hopefully i can assume that faces are in order. If not how do i find out what faces are next to each other, comparing vertexes?
Yes. This seems to be the only method. Number your vertices and look if an face uses 2 vertices a other vertex uses, too.
noeska hat geschrieben: Die Position des Betrachters. That is the light, or when i just want to render an outline, the camera position. Correct.
noeska hat geschrieben: Die Position auf die der Betrachter sieht. (Intelligenterweise, dass Zentrum des Objekts dessen Silhouette man berechnen will.) The coordinate where the mesh is rendered on screen (ps how bad is it when it is not right?) You can assume this. But a better way would be to make 2 vectors. one for every vertex of an edge and then take an average vector. This is sure slower because you have to calculate the vector for every edge.
noeska hat geschrieben: The calculating part i can follow, but Außerdem sollten Kanten die nur zu einem Polygon gehören ebenfalls zur Silhouette gezählt werden. How do i detect that?
Normal 3D Object have no such edges (because the are closed). But you can count again if two faces use the same edge (see question2)
|