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

    [REQ] Selection by Surface ?

    Scheduled Pinned Locked Moved Plugins
    7 Posts 4 Posters 1.5k Views 4 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.
    • pilouP Offline
      pilou
      last edited by pilou

      Maybe this yet existing ?
      Selection by surface
      Example : selection all facets > 13 m2
      or Selection all facets < 8 m2 and > 23 m2
      etc...

      Frenchy Pilou
      Is beautiful that please without concept!
      My Little site :)

      1 Reply Last reply Reply Quote 0
      • mitcorbM Offline
        mitcorb
        last edited by

        Hi, Pilou:
        I don't have an answer, but you got my vote. I think this is a good idea.

        I take the slow, deliberate approach in my aimless wandering.

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

          sdmitch

          Can I suggest some enhancements to your tool...
          Use ents=model.**active_**entities - so it can be used inside a group etc.
          Use @fbs_lt etc rather $fbs_lt etc as you get no benefit from using a global variable that is then accessible to all scripts and not just your own - and it might break another tool using the same name.
          Use @fbs_lt=100**.0** because setting it to an integer initially might preclude the user using a float value later.
          Shouldn't the selection test be this?
          sel.add(e) if e.area >= @fbs_gt * units_factor and e.area <= @fbs_lt * units_factor
          [Your variables/prompts etc are a little confusing too - min/max would be clearer??]
          You don't want to turn the value to an integer with @fbs_lt = ans[0].to_i
          @fbs_lt = ans[0] will do OR use .to_f to ensure it's a float - though it will be anyway!
          You could wrap you method in a module rather than expose it to the base class... BUT that's a lesson for another day...
          πŸ€“

          TIG

          1 Reply Last reply Reply Quote 0
          • pilouP Offline
            pilou
            last edited by

            Hello
            yes something like that! β˜€
            But seems there is something wrong πŸ˜‰

            How have little surfaces? Not the bigs faces spherical < 6000 m2 ?
            Seems there is not exclusive result!


            fbs.jpg


            fbs.skp

            Frenchy Pilou
            Is beautiful that please without concept!
            My Little site :)

            1 Reply Last reply Reply Quote 0
            • sdmitchS Offline
              sdmitch
              last edited by

              Pilou, Are you trying to select only the faces that are < 6000m2? If so, setting the Greater Than value to 1000000 should exclude everything else.

              TIG, Thanks for you comments. I admit that there are many areas and ways of improving the plugin but it is just something I through together in 30 minutes or less as a starting point.

              Nothing is worthless, it can always be used as a bad example.

              http://sdmitch.blogspot.com/

              1 Reply Last reply Reply Quote 0
              • pilouP Offline
                pilou
                last edited by

                AH OK! 😳
                that curious but that works πŸ‘ 😎
                I have made empty value on "the Greater than" πŸ˜’

                Frenchy Pilou
                Is beautiful that please without concept!
                My Little site :)

                1 Reply Last reply Reply Quote 0
                • sdmitchS Offline
                  sdmitch
                  last edited by

                  A new and improved fbs.rb is now available. Faces in groups and components are now checked along with all other faces in the model. Since the plugin is expecting numbers to be entered for the maximum and minimum areas, an empty entry is not valid.

                  If the "Area <" is less than the "Area >" an OR selection is made and all faces with an area less then the "Area <" value or an area greater than the "Area >" value are selected.

                  If the "Area <" value is greater than the "Area >" value an AND selection is made and all faces with an area greater than the "Area >" and less than the "Area <" value are selected.

                  For example, Area < 1000 and Area > 0 selects all faces with an area less than 1000. Area < 0 and Area > 1000 selects all faces with an area > 1000. Area < 2000 and Area > 1000 selects all faces with an area between 1000 and 2000. Area < 2000 and Area > 4000 selects all faces with an area less than 2000 or greater than 4000.


                  Select Faces by Size

                  Nothing is worthless, it can always be used as a bad example.

                  http://sdmitch.blogspot.com/

                  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