Bug: SelectionPoint()

Hi,

We found a bug regarding SelectionPoint() method

The method works properly on vertical, horizontal surfaces but it sometimes fails on tilting surfaces.

EDIT: It also works with polysurface but not with surface group.

Please, read the following thread:

Hi @onrender,

Can you post a model, some sample script code, and precise instruction on how to repeat the problem you are seeing?

– Dale

Hi Dale,

Please, click on the red area of the grouped surfaces. Same behaviour on the polysurface but I could not apply the red material. The selection point will be off the projection.

Code sample:

import Rhino
import scriptcontext
import rhinoscriptsyntax as rs

# Select surface or polysurface:
obj_ref = rs.GetObject("Surface to move", rs.filter.surface, True, False, None, True)
if obj_ref.SelectionMethod() == Rhino.DocObjects.SelectionMethod.MousePick:
    clickPoint = rs.AddPoint(obj_ref.SelectionPoint())

test.3dm (88.9 KB)

@dale, I’ll add this to youtrack and will investigate.