View Full Version : select only vertical faces?
thp777 12-23-2010, 06:40 PM does anyone know if there is a way to that i can select all vertical faces in a scene?
is this even possible with scripting?
thx in advance
|
|
Kickflipkid687
12-23-2010, 06:53 PM
What do you mean by vertical faces? Faces on something like the side of a tall cylinder or something?
You could probably use the faces normals to get their orientation and collect them that way.... That's my first thought.
thp777
12-23-2010, 07:26 PM
What do you mean by vertical faces? Faces on something like the side of a tall cylinder or something?
ya exactly
thp777
12-23-2010, 08:14 PM
can u point me in the right direction for getting orientation?
DavidM
12-23-2010, 08:30 PM
you have to compare the angle of the face's normal to a vertical vector and if the angle is close enough to 90degrees, than you collect that face. you can read into dot product to find the angle between 2 vectors.
edit: if you are checking and edit.poly object you can get the normal using polyop.getFaceNormal function
thp777
12-23-2010, 08:33 PM
alright i think i get it now
thx
CGTalk Moderation
12-23-2010, 08:33 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.