• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

A ruby request: select similar

Scheduled Pinned Locked Moved Developers' Forum
5 Posts 5 Posters 851 Views
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.
  • M Offline
    matteo
    last edited by 17 Jun 2008, 19:36

    Select similar faces or edges: this is a function of Wings 3D that I find great. It allows you to select all identical or quite identical faces of a model and it is very useful with complex, non planar geometries.
    In Sketchup, when you can not select all the faces that you need with a single operation you have to select them manually by multiple ctrl/shift clicks.

    For those who doesn't know it, Wings 3d is a free (even for commercial purposes) subdivision modeler that allows you to model nice organic shapes - http://www.wings3d.com/ - I use it combined with the astonishing Soap Skin & Bubble ruby of Josef Leibinger.

    Since the release of Subdivide and Smooth ruby by Dale Martens I thought I can integrate in Sketchup most of the modeling process made with Wings 3D.

    It would be great to port to Sketchup some of the selection options of Wings 3D too.

    By selecting similiar faces, it lets me select all faces with the some shape and area (not really the some, but with a tolerance that tends to zero. That's why it's named select similar, instead of select identical - in rare cases with some complex models it selects unexpected faces, but I think this is the fee to pay for a fast operation). The selection cares about the bounding geometry too.

    I hope that someone of you ruby gurus can figure out how it works and expand again SU features.

    Here a couple of screenshots to explain better what I mean:


    one-face.jpg


    similar.jpg

    hire me: http://www.nonsolo3d.it/ !

    1 Reply Last reply Reply Quote 0
    • F Offline
      fredo6
      last edited by 17 Jun 2008, 20:37

      This is possible, and it's typically a script that would be progressively enriched by the experience of users, because similarity is something actually quite subjective (unless you have the full specs of what Wings3D does).

      Let's get more feedback from other members of the forum.

      1 Reply Last reply Reply Quote 0
      • T Offline
        tbd
        last edited by 17 Jun 2008, 21:08

        took a quick look on wings3d sourcode (in erlang) and seems that similar command does a tolerance on face area, which can be done easily in SU via

        face.area.between?(selected_face.area - tolerance, selected_face.area + tolerance)
        

        we can add a check if it has the same normal as an optional

        SketchUp Ruby Consultant | Podium 1.x developer
        http://plugins.ro

        1 Reply Last reply Reply Quote 0
        • T Offline
          todd burch
          last edited by 17 Jun 2008, 21:47

          Similar faces could also be weighted more if they are connected, and still more if their edges have similar lengths / ratios.

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by 17 Jun 2008, 22:48

            Richard was also looking for a script that could use this function for identifying leaves on an imported model:

            301 Moved Permanently

            favicon

            (www.sketchucation.com)

            Hi

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

            Advertisement