R4 Dynamic drawing

    MRhinoGetObject go = new MRhinoGetObject();
            go.SetGeometryFilter(IRhinoGetObject.GEOMETRY_TYPE_FILTER.mesh_object);
            go.GetObjects(1, 0);
            IOnMesh mesh = go.Object(0).Mesh();
            var objref = context.m_doc.AddMeshObject(mesh);
            OnMESH_POINT mp=new OnMESH_POINT();
            ArrayOn3dPoint arrpt=new ArrayOn3dPoint();
           // context.m_doc.DeleteObject((IRhinoObjRef)objref);
            for (int i = 0; i < 10; i++)
            {
                RhUtil.RhinoGetPointOnMesh(objref, "getptonm", true, ref mp);               
                context.m_doc.AddPointObject(mp.m_P);
                arrpt.Append(mp.m_P);
                
            }

            var crv= RhUtil.RhinoInterpCurve(3, arrpt, null, null, 3);
            context.m_doc.AddCurveObject(crv);
            context.m_doc.Redraw();

Could you please tell me how to dynamically draw, and do not add an object to the rhino can be used, because my method is too stupid

Hi @Hershel,

The Rhino 4.0 .NET SDK is pretty old (and obsolete). Why are you still developing for this?

I don’t even have a system I can install Microsoft Visual C++ 2005 on.

But, here are some samples you might want to review:

– Dale

Thank you for your reply. I have used R4 for many years and do not want to change to a higher version. I hope you can understand. Learning C# there are a lot of do not understand, I use the win7 installed vs2008 to learn, hope to step by step

The samples I mentioned do demonstrate how to use a display conduit.

– Dale

  • It’s been a pleasure getting your guidance. Thank you