Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

coordinate system of normal from ComputeDerivatives method

1 REPLY 1
Reply
Message 1 of 2
Anonymous
564 Views, 1 Reply

coordinate system of normal from ComputeDerivatives method

Hi, I am confused with coordinate systems:

 

(1) From GeometryInstance.Transform property, we can get the norm = Transform.basisX,  this normal is based on the document coordinate system, is that right? But some code shows that, we should do transform to get normal vector based on document systems. 

 

(2) ComputeDerivatives of Face class, the normal and tangent vectors are based on the document coordinate system?  Is that the instance coordinate system the same as the document coordinate system?   For example, see following code

 

Autodesk.Revit.DB.XYZ FaceNormal = m_face.ComputeDerivatives(endptUV).BasisZ;  

 FaceNormal = reference.GetInstanceTransform().OfVector(FaceNormal); // transformation to get document coordinates instead of the parent symbol

 

I am confused (a) the coordinate system in Revit, and (b) whether I need to do additional transform of vectors calcualted by ComputeDerivatives() to document coordinate system?

Tags (2)
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Answer my own question,

 

My test shows that coordinates calculated by ComputeDerivatives() falls into model space.  Transform matrix is identity.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community