Guest User

Untitled

a guest
Oct 30th, 2012
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.07 KB | None | 0 0
  1.         Rhino.FileIO.File3dm model = new File3dm();
  2.  
  3.             Plane plane = Rhino.Geometry.Plane.WorldXY;
  4.             Sphere sphere = new Sphere(plane, 10);
  5.  
  6.             NurbsSurface surf = sphere.ToNurbsSurface();
  7.  
  8.             surf.Points.SetControlPoint(0, 0, new ControlPoint(0, 0, -15.0));
  9.             surf.Points.SetControlPoint(1, 0, new ControlPoint(0, 0, -15.0));
  10.             surf.Points.SetControlPoint(2, 0, new ControlPoint(0, 0, -15.0));
  11.             surf.Points.SetControlPoint(3, 0, new ControlPoint(0, 0, -15.0));
  12.             surf.Points.SetControlPoint(4, 0, new ControlPoint(0, 0, -15.0));
  13.             surf.Points.SetControlPoint(5, 0, new ControlPoint(0, 0, -15.0));
  14.             surf.Points.SetControlPoint(6, 0, new ControlPoint(0, 0, -15.0));
  15.             surf.Points.SetControlPoint(7, 0, new ControlPoint(0, 0, -15.0));
  16.             surf.Points.SetControlPoint(8, 0, new ControlPoint(0, 0, -15.0));
  17.  
  18.             Brep brep = surf.ToBrep();
  19.  
  20.             model.Objects.AddBrep(brep);
  21.             model.Polish();
  22.             model.Write("c:\\file.3dm", 4);
Advertisement
Add Comment
Please, Sign In to add comment