Hi,
Is it possible to create a solid from a surface by offsetting it using Rhino Common and C#.
Hi,
Is it possible to create a solid from a surface by offsetting it using Rhino Common and C#.
Yes.
Import your surface as Brep, so the first face of the brep is the surface itself.
private void RunScript(Brep S, double D, ref object A)
{
double t = this.RhinoDocument.ModelAbsoluteTolerance;
A = Rhino.Geometry.Brep.CreateFromOffsetFace(S.Faces[0], D, t, false, true);
}