Sel PolySrf with Same Srfs

Hi,

Is there a way to select polysrfs made with duplicate srfs without exploding the entire model and selecting duplicates? See attached as example.

PolySameSrf.3dm (66.3 KB)

TIA
H

Hi -

There isn’t a native tool for doing so, no.
-wim

Ok. Is there a script/plug-in floating around to achieve this? Better, for coplanar srfs joined as polysrfs?

TIA
H

Hello- this may get some of these

import rhinoscriptsyntax as rs
import Rhino

def test():

    ids = rs.ObjectsByType(16,False, 1)
    if not ids:
        return
        
    geos = [rs.coercebrep(id) for id in ids]
    pass
    for n in range(len(ids)):
        geo = geos[n] 
        if geo.IsSolid:
            if geo.Faces.Count == 2:
                srfs = geo.Surfaces
                if Rhino.Geometry.Surface.GeometryEquals(srfs[0],srfs[1]):
                    rs.SelectObject(ids[n])

test()

-Pascal

1 Like

Thanks @pascal. Any chance of having one which selects polysrfs made from coplanar srfs? See file.

PolyCoplanarSrf.3dm (76.9 KB)

TIA
H

Hello- Presumably you want to find not coplanar but both coplanar and overlapping at leat partially…?
-Pascal

Yes please… what you said.

Hello- you can try this -

SelCoplanarOverlaps.py (1.4 KB)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"

Guaranteed partly tested.

-Pascal

Thanks