sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    How to compute dimensions of solar masks

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 320 Views 2 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.
    • I Offline
      iaselle
      last edited by

      Hi everybody,

      I've been browsing this forum for a couple of days but since I'm a dummy about 3D geometry, here is a new thread !

      According to attached image, I have to write a piece of code that will detect, for a dedicated wall, if other faces can cast shadows to it : adjacents wall with re-entrant angles or adjacent horizontal faces like overhangs.

      The variables the code has to compute (imposed by an external program) are the following :

      • distR and deptR (see figure) for a reentrant wall located on the right of the wall
      • distL and deptL for a reentrant wall located on the left of the wall
      • distT and deptT (see figure) for a overhang that is on the top of the wall

      My questions are :

      • how to detect reentrant wall since the "angle_between" function does not work as expected (see post alternative to angle_between?)
      • how to know when an adjacent face is "on the right" or "on the left" of the current face (viewed from outside)
      • how to compute the "left", "right" and "top" distances between a window (componentinstance) and the edges of a wall ?

      Thank you very much in advance πŸ˜„

      PS : here are some posts that might be helping
      alternative to angle_between? http://www.sketchucation.com/forums/viewtopic.php?f=180&t=19300
      http://forums.sketchucation.com/viewtopic.php?f=180&t=31448
      http://groups.google.com/group/Ruby-API/browse_thread/thread/82c3f9c764171be9


      variables to compute for overhangs and adjacent walls with reentrant angle.

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        You might be interested in this tool http://forums.sketchucation.com/viewtopic.php?p=371243#p371243

        TIG

        1 Reply Last reply Reply Quote 0
        • I Offline
          iaselle
          last edited by

          Thank you very much TIG for your work.

          Your ShadowProjector is great and I'll try to do some reverse engineering on it πŸ˜„

          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