Sunday, January 16, 2011

Update Baked Objs by C#


Link: update-bake


1.
Guid uuid = Guid.Empty;
uuid = doc.Objects.AddSurface(obj as Surface, att);

2.
Rhino.DocObjects.ObjRef RefObj = new Rhino.DocObjects.ObjRef(uuid);
doc.Objects.Replace(RefObj, srf);

Wednesday, January 12, 2011

SpaceMorph - Deformation Utility from Rhino SDK/RhinoCommon

Tutorial: link

To make a component that applies a deformation to geometry, try Rhino.Geometry.SpaceMorph with MorphVector. Yet, without using Morphvector, Rhino will just morph two nearby points and thus approximate the vector deformation.