PDA

View Full Version : Rotation based on normal


darktding
10-11-2005, 08:34 PM
Given a nurbs surface, and using the points on surface I managed to the the normal information at a point at u,v
How does one rotate say a cone geomtry along the normal that the function spits out?

Robert Bateman
10-12-2005, 06:52 PM
Given a nurbs surface, and using the points on surface I managed to the the normal information at a point at u,v
How does one rotate say a cone geomtry along the normal that the function spits out?

use a constraint?

darktding
10-12-2005, 07:12 PM
yes i get that theres a normal constraint, but here is the situation....
I have a cone with normal (N2) and say a uv normal (N1) I want to align it along the normal of the cone to that particular cv
http://img.photobucket.com/albums/v470/keltuzar2/normalRotate.jpg

There is an angleBetween function but unforunately it doesnt do a good job...
also when I tried the normal constrain it looks at the object level, yes I tried doing this command too
normalConstraint nurbsPlane1.cv[3][0] nurbsCone1;

darktding
10-12-2005, 07:17 PM
oh nevermind, thanks rob....

CGTalk Moderation
10-12-2005, 07:17 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.