Jump to content
sherlockHound

Get polygon and normals in Python

Recommended Posts

Hey all-

I have a simulation running that is controlling the position and orientation of a grid that comprises just a single square polygon. Trying to use python to output the normal and center point of that grid. I can access the first hou.Prim, but I can't figure out how to get the polygon to get the normal. How do I do that?

 

Thanks!

Dave

Share this post


Link to post
Share on other sites

Hooray! I got it!

Since the type is already hou.Polygon, I just needed to treat it as such. No casting required. I think I love Python.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×