3dsmax - calculate total angle between selected faces -
i have framework selecting holes in objects. right works manually clicking inside hole (with “by angle” option on), selects inside of hole. delete faces, select “open edge” cap it. script now.
all of works fine, not want click each hole separately.
to put perspective: i’ve got 10 models (engineering models, hardsurface), each model @ least 5000 separate parts, have go through , remove holes using above way of doing it.
so think might trick:
1) select each face 1 1 softselection. 2) each time check angles in selection. 3) if it’s hole, it’s ~360 angle, know want remove.
the part need with, getting total angle of selected faces.
the rest of done.
the case simple box,with cylinder through it, use boolean create hole in box.
this basic function use in scripts, facenormals normalised vectors ( lenght = 1.0 , start in [0,0,0]) point out of face.
fn getanglebetweentwofaces face1 face2 =
(-- returns angle between 2 facenormals theangle = acos(dot face1 face2) --format"\tthe angle: %\n" theangle --uncomment listener output if want. return theangle )
hope further
Comments
Post a Comment