Project VectDg onto a surface to get a 2D vector
Posted: Thu Nov 21, 2024 4:22 am
Hello,
I have a vector in 3D space (VectDg) and I want to project it onto a IUVSurface_DG/IBRepFace_DG at a certain position. I can do this using VectDg n = IUVSurface_DG.GetNormal() and then use myVector.MakeOrtho(n).
Then I can use
Then du = myVector.Product(dirU) and dv = myVector.Product(dirV) will be the 2D coordinates of the projection in uv space.
Is there a simpler way?
Thank you for your answers,
Herron
I have a vector in 3D space (VectDg) and I want to project it onto a IUVSurface_DG/IBRepFace_DG at a certain position. I can do this using VectDg n = IUVSurface_DG.GetNormal() and then use myVector.MakeOrtho(n).
Then I can use
Code: Select all
dirU = GetTangent(uv, true); dirV = GetTangent(uv, false);
Is there a simpler way?
Thank you for your answers,
Herron