PDA

View Full Version : Nurbs extruded tube Normals (inwards or oiutwards)


SuperDjo
01-08-2007, 10:35 AM
Hello everyone.

I have a question regarding the normals of an extruded nurbs tube (generated through mel using a curve and circle). I was wondering how I could get the direction the normals of the tube are pointing. I just want to know if they are facing inward or outward. I'm pretty sure the answer lies in PointOnSurface but I d'ont see which mathematical solution to use once I have the normals as vector from a couple of points on the surface. The thing is I want to reverse the surface direction if the normals are facing inward.
Strangely the extrude along curve gives me tubes with normals sometimes inward, sometimes outward. (generated at path using component picot and profile normal as the orientation)

I now regret not listening enough during my high school math classes. I'm not looking for a complete answer, but if someone could just point me in a direction that would be just great.

Thanx in advance

Pyrokinesis
01-09-2007, 08:51 AM
The reverseSurface command may be what you are looking for. Check the docs for more details.

Example:
reverseSurface -query -direction "nurbsCube1";

There are several flags, check em out.

SuperDjo
01-09-2007, 09:36 AM
Cool man, i'll check it out ! thanx for the reply

CGTalk Moderation
01-09-2007, 09:36 AM
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.