Hi,
I’m working on a simple python script that dynamically creates and animates geometry. I got it working in 2D easily, but having issues rendering 3D geometry in the display pipeline. I can render the temporary geometry with curves easily, but not with spheres. I wonder if I’m doing something wrong.
Here’s the working draw code:
def draw(dp, frame, geom):
# dp is display pipeline see rhino common docs
for circ in circles:
pt = rs.CreatePoint(circ.pos.X, circ.pos.Y, circ.pos.Z)
cir = Rhino.Geometry.Circle(pt, circ.radius)
dp.DrawCircle(cir, rs.CreateColor(circ.color))
Here’s the non-working code:
def draw(dp, frame, geom):
# dp is display pipeline see rhino common docs
for circ in circles:
pt = rs.CreatePoint(circ.pos.X, circ.pos.Y, circ.pos.Z)
sph = Rhino.Geometry.Sphere(pt, circ.radius)
dp.DrawSphere(sph, circ.color)
Any help would be appreciated!