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