Hello, I have a curve close to a Brep surface (but not on). How do I extrude the curve to a surface on both direction of the Brep normal? I have tried to offset the extruded surface, converted the extruded surface to a NurbsSurface, but the surface is still on one side of the Brep
Hello Ming Ma Usa,
Please post the file if you can or similar.
surface-extrude0.3dm (890.7 KB)
surface-extrude1.3dm (964.7 KB)
Files attached. surface-extrude0.3dm is the original geometry. surface-extrude1.3dm is the extruded geometry. Below is my code snippet. Thanks!
Surface sf = Surface.CreateExtrusion(crv, brepNormal);
if (sf.HasNurbsForm() == 1)
//sf.Extend(IsoStatus.X, 100 * TOL, true);
//sf.Extend(IsoStatus.Y, 100 * TOL, true);
//sf.Extend(IsoStatus.North, 100 * TOL, true);
//sf.Extend(IsoStatus.South, 100 * TOL, true);
//sf.Extend(IsoStatus.East, 100 * TOL, true);
//sf.Extend(IsoStatus.West, 100 * TOL, true);
NurbsSurface nbsf = sf.ToNurbsSurface();
Brep myStfExtrudeBrep = nbsf.ToBrep();
Hello Ming Ma,
When you run the command to extrude the curve check to see if in the command line it says: BothSides=Yes
If it instead reads: BothSides=No
Click on the underscore to change it to : =Yes
Is that what you want ?
I want to do it using Rhino Common functions, not through GUI. Thanks!
Hi @ming.ma.usa ,
crv in direction of crv plane’s ZAxis vector for extrude/2 amount.
Then extrude such moved crv.
Thanks, That works!