sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Help! When an Object get touched by a Shadow (sun shade)

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 2 Posters 538 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
      immcamp410
      last edited by

      Hi, I'm newbie here......can anyone help me to solve this algorithm that can applied in sketchup:

      Ifa Shadow touching a SolarPanel :
      Then, messagebox : Forbidden solar panel position!
      Else
      doing solar panels energy calculation

      note : the Shadow (from sun shade) in range Januari-Desember , 7am-5pm

      i'm stuck in the way shadow touch solar panel, can anyone explain?

      I attached the screenshot:


      the solar panel get touched by the tower's shadow in May

      1 Reply Last reply Reply Quote 0
      • JuantxoJ Offline
        Juantxo
        last edited by

        You can use Model.raytest to know it.
        If you are working with solar panels you can use Skelion plugin also.
        Best

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

          Thanks for the advice mr.juantxo, still finding solutions...... need more details

          1 Reply Last reply Reply Quote 0
          • JuantxoJ Offline
            Juantxo
            last edited by

            You need to know if a panel is in shadow or not using this 2 vectors and using cosine law
            panel verctor->
            v=Sketchup.active_model.selection[0].normal
            sun vector->
            s=Sketchup.active_model.shadow_info["SunDirection"]

            But you need to know also if there is some object projecting shadow over the panel using raytest with sun vector and some points of the panel. You can modify this step and look for other methods if you need more accuracy...

            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