View Full Version : Smart Normal Flipper (part 2)

01 January 2009, 12:28 AM
I came across this thread.

I can't get it to work but I could really use this. Can someone help me? I'm using max 2008 x64.

01 January 2009, 03:06 AM
define "can't get it to work"?

01 January 2009, 01:21 PM
Given a mesh with whole, connected elements (no holes), there is a superiour method for finding correct face-normals:

-select/isolate elements (meshop.getElementsUsingFace for instance)
-iterate over faces, for each find the number of intersections between said element and a ray created from the current face-normal (RayMeshGridIntersect for instance).
-if you get an odd number of hits (1,3,5 etc.), the face should be flipped. Otherwise (0,2,4 etc.) it should stay as it is.

(this requires a nice, clean model without double faces etc.)

CGTalk Moderation
01 January 2009, 01:21 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.