Opposition direction of Planerface.Normal

Opposition direction of Planerface.Normal

thannaingoo.api
Advocate Advocate
1,489 Views
2 Replies
Message 1 of 3

Opposition direction of Planerface.Normal

thannaingoo.api
Advocate
Advocate

Dear All,

How could I convert planerface.Normal to opposite direction.

 

Regards

Eden Oo

0 Likes
Accepted solutions (2)
1,490 Views
2 Replies
Replies (2)
Message 2 of 3

aignatovich
Advisor
Advisor
Accepted solution

Hi! Do you want to get the opposite direction? In such case just write -1*planerface.Normal or planerface.Normal.Negate(). But if you want to flip the face... it is not possible

 

 

Message 3 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution

Please always check your spelling. Otherwise, your thread might never be found by relevant later searches. This is about normals of planar faces represented by the PlanarFace class.

 

Here are some other threads relevant to this topic:

 

 

I believe that, together, they answer all possible questions on face normals and mesh triangle orientation.

 

Note the tricky bits in the third discussion, explaining why you need to differentiate between:

 

  • A picked face and the face returned by the element geometry.
  • A face belonging to the symbol geometry (family definition coordinate space) and instance geometry (project coordinates).

 

Many thanks to @Revitalizer  and @FAIR59  for their analysis and illuminating explanations there!

 

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder