Skip to main content
Question

How to apply new surface normals to flat surfaces (planes), so that they rotate?

  • August 6, 2021
  • 1 reply
  • 17 views

As mentioned in the title, I am trying to rotate faces to conform to their corresponding surface normals. I got the surface normals by calculating them from 3D points (turned to convex polygons, grouped by ID) and extracted the normals as attributes. Then I merged these attributes with flat surfaces (using common IDs) and applied these measures to the surfaces using GeometryPropertySetter. I assumed that would do the trick in rotating the surfaces, but the faces remain completely flat, even with the surface normals applied. Is there something that I am missing, or some other way to do what I am aiming for?

I appreciate any help on this. Thanks a bunch!

1 reply

virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • August 9, 2021

I think you will actually need to use a 3DRotator to rotate the planes. Either that or the 3DAffiner, I took a quick look online and found this:

https://stackoverflow.com/questions/2096474/given-a-surface-normal-find-rotation-for-3d-plane

 

There is a pretty good answer here and there is a matrix which you can use in the 3DAffiner.