Create Preview image in Rhino 7

Hi,

i’m using the exact code of this example rhino-developer-samples/cmdSampleMeshPreviewImage.cpp at 7 · mcneel/rhino-developer-samples · GitHub in Rhino 6 without problems.
But in Rhino 7 i get always an empty image. Also the conduit is not getting called (ExecConduit)

Can someone check the code of the sample in Rhino 7?

Thanks

Hey @dsw,

I’ve updated the cmdSampleMeshPreviewImage.cpp sample. Let me know if it works.

– Dale

1 Like

Hi @dale,

thanks for the fast reply. Yes now it works for me.

The only thing that i added was in line 171:
dp.SetGeometrySource(pDoc);

Thanks a lot.

1 Like