Determine if face is pointing toward center
-
Hello folks,
Im having trouble controlling a sketchup model with the Ruby API. Specifically, I am trying to push/pull some 3D cubes that are hanging on the walls of the model (like a wall mount TV). I enter the value for pushpull (ie. ent.pushpull 12) and sometimes the face is pushed out of the wall, while other times it is pushed in toward the center of the room.
Ideally, I always want the pushpull to move the box "in" toward the center of the room (not out through the wall). I'm not sure how to programatically figure out if I need a negative number for push/pull .
Thanks
-
Search found 18 matches: +push +pull +direction
Search found 192 matches: +push +pull
Search found 72 matches: +vector +face +normal
-
Sound more like the model isn't modelled with their normals correct. All 3D software tools will use cause odd results of the normals in the mesh isn't modelled correctly.
Advertisement