sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Determine if face is pointing toward center

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 3 Posters 82 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      debracey
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        Search found 18 matches: +push +pull +direction

        Search found 192 matches: +push +pull

        Search found 72 matches: +vector +face +normal

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          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.

          Thomas Thomassen β€” SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement