Grasshopper

algorithmic modeling for Rhino

Iin rhino,it can be done,but i dont know how to do this in c#....

Thank you in advance!

Views: 385

Replies to This Discussion

Not sure I'm interpreting your drawing properly, but it looks like just a sweep of the two circles. If this is what you're after try the SweepOneRail.PerformSweep() method. 

 

SweepOneRail railSweep = new SweepOneRail();
Curve[] xSections = {x,y};
double[] xParams = {0,1};
A = railSweep.PerformSweep(z, xSections, xParams);

thank you,Andrew!i have tried and it works!and how do you know that,from rhinocommon sdk?i have looked up  the rhinocommon sdk and find it,but i cannot find out the exact meaning of xParams,can you tell me how to find the explaination of xParams?,thank you !!!

Yeah, I looked in the RhinoCommon SDK. The PerformSweep method takes 3 inputs, in the way I'm using it: the rail curve, a list of section curves, and a list of parameters (points along the rail curve) at which to locate the section curves. 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service