by johnsmithku9 » Tue Dec 25, 2012 8:31 pm
Normal mismatch for oneThe problem with a Klein bottle is that it is not orientable: it is a one-sided manifold, so it is impossible to maintain a consistent normal across the entire surface. No matter how you choose the normals on the mesh, there will always be a line where the normal flips from one side to the other wow gold po.It looks like the original (gold) Klein bottle may have been tweaked so the orientation mismatch is just inside the "mouth" of the bottle, hiding the defect rather than fixing it wow gold. Note that, in your (gray) version, you can see the surface just inside the mouth correctly; in the gold bottle, it appears black wow gold kopen. From your diff Acheter Des PO, I'd guess they might have tweaked the condition in the InvertNormal() function. (No, the diff doesn't show any tweaking -- but it does sound like the logical place to tweak.)The simplest way to make your Klein bottle seamless is to do a double cover: each triangle appears twice, facing opposite directions. This will probably be more complex than simply making your triangles double-sided -- the crux is that each normal must also appear twice, pointing in opposite directions. The most expedient way to do that is to duplicate the vertices, and use a different set of vertices for the opposing (single-sided) triangles.(I have not looked at your code in detail, but to do the double-cover thing, you'll probably need to extend one of your parametric loops by a factor of 2, and possibly do something like distinguish between positive and negative quaternions. Don't forget to make the resulting triangles single-sided wow gold ideal.)
More articles come from the:http://www.wowgoldpo.fr