mcneel / ghpython

A Grasshopper component for Rhino.Python
http://www.food4rhino.com/project/ghpython
118 stars 34 forks source link

rs.TransformObjects does not convert to ID #13

Closed scotttd closed 13 years ago

scotttd commented 13 years ago

rs.TransformObjects( geo, xform, True ) does not work on geometry input from an outside component. is a Brep or any other geometry type.

Specific example: Create a GHpython component with the x input as a Box or any Brep.

Code:

sample script to show how to use this component and rhinoscriptsyntax

import math import rhinoscriptsyntax as rs

geo = x cplane = rs.WorldXYPlane() xform = rs.XformRotation2(y, cplane[3], cplane[0])

rs.TransformObjects( geo, xform, True )

I realize if I use the code:

geo=ghdoc.Objects.AddBrep(x)

to create an ID I can use in rs.TransformObjects, but that line should not be required.

piac commented 13 years ago

This is a Rhino.Python bug/feature request. I reposted it there. https://github.com/mcneel/rhinopython/issues/38