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

    [REQUEST] Select faces by bitmap RGB values

    Scheduled Pinned Locked Moved Plugins
    11 Posts 6 Posters 1.5k Views 6 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.
    • GaieusG Offline
      Gaieus
      last edited by

      Hi Baldman,

      Look at Didier's heightfield_gen.rb plugin which "creates a mesh based on a greyscale PGM or PPM image. Altitude is determined by the color of each pixel: white is highest altitude, black is lowest. Support for layer, automatic cleanup of coplanar edges."

      Download at the Ruby Library Depot and see if this is something you could use..

      Gai...

      1 Reply Last reply Reply Quote 0
      • B Offline
        baldaman
        last edited by

        Thank you GAIEUS for you reply.
        I've tried with this cool ruby form Didier Bur but's hard to obtain a clean selection at the end of the process.
        I think a modification of Didier's Code could do the job.
        Unfortunately it is unreadable.
        Didier si tu nous entends....

        1 Reply Last reply Reply Quote 0
        • GaieusG Offline
          Gaieus
          last edited by

          Well, it's definitely an old script (I already encountered it when I was a newbie back with version 5) and maybe it could use some revamping. I'll try to find the topic (from about 2 years ago) where people played with it and got interesting results but won't promise anything (on top of all, I have to go now).

          Gai...

          1 Reply Last reply Reply Quote 0
          • R Offline
            remus
            last edited by

            Both didiers height field scripts are scrambled, which is what baldaman meant by 'unreadable' i guess.

            http://remusrendering.wordpress.com/

            1 Reply Last reply Reply Quote 0
            • E Offline
              Ecuadorian
              last edited by

              If it's just black and white you're interested, you could convert your bitmap to vector lines before import.

              -Miguel Lescano
              Subscribe to my house plans YouTube channel! (30K+ subs)

              1 Reply Last reply Reply Quote 0
              • B Offline
                baldaman
                last edited by

                The idea is to "paint" distribution maps with photoshop or whatever.
                "Bitmap select" to select the faces and "components onto face collection" by Chris Fullmer to distribute the components onto the selected faces.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  baldaman
                  last edited by

                  Sorry to insist.
                  Nobody, really?

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

                    There's no easy way to get pixel data from bitmaps in the SU ruby. Would need a library that reads the same formats that SU support. This isn't an easy request.

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

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      baldaman
                      last edited by

                      Thats what Didier BUR did with heightfield_gen.rb.
                      It's not with common bitmap files like jpg or png but...
                      Unfortunately Didier as disappeared for a while. I hope is fine.

                      Anyway thank you Thomthom for your reply.

                      1 Reply Last reply Reply Quote 0
                      • plot-parisP Offline
                        plot-paris
                        last edited by

                        if there was a way to retrieve the bitmap information, that might be a gread addition to the component spray tool
                        distribution by bitmap...

                        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