On Tue, 29 Aug 2000 16:43:43 +0200, Nicolas Calimet wrote:
>1) Calculate the geometric center of all the mesh vertices
>2) For each triangle
> a. calculate its geometric center from its vertices
> or even simply choose one of its vertex
> b. compare its normal vector to the (triangle center)-(vertices
> center) vector.
> c. revert the triangle vector if dot product is negative
>
This algorithm is only guaranteed to work for convex meshes. It
fails for meshes with concavities or with multiple surfaces.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|