algorithmic modeling for Rhino
Hello,
How can I set the x,y,z axis for an extrusion within the c# component?
This is what I have and it does not create the extrusion while it is not giving me an error!
Also, How can I cap this extrusion?
private void RunScript(Curve x, ref object A)
{
A = Surface.CreateExtrusion(x, double(0.0, 0.0, 1.0));
}
Thanks!
Naciem
Tags:
The code you posted should throw an error as that is probably not a valid expression for a double. You want to have a vector there.
try this:
A = Surface.CreateExtrusion(x, new Vector3d(0.0, 0.0, 1.0));
Thank you so much Luis! It is working now.
Do you by any chance know how I an cap this extrusion or extrude a surface instead?
Thanks!
Naciem
Try this to cap the result:
Surface s = Surface.CreateExtrusion(x, new Vector3d(0.0, 0.0, 1.0));
A = s.ToBrep().CapPlanarHoles(doc.ModelAbsoluteTolerance);
It works!
Thanks again for your help Luis!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by