Grasshopper

algorithmic modeling for Rhino

hi everyone

I am looking for the equivalent of the the "Ribbon" command [surface tools] in "the Rhinocommon"

I am trying to give a thickness to some curves, by extruding the curves in bothsides, an offset that creates a surface instead of two resulting curves, this is made possible in rhino viewport through the Ribbon command, While my need is find such a function in the rhinocommmon allowing me to implement it in GhPython script

thanks in advance

Views: 1120

Replies to This Discussion

Hi cristo

,Check the attached file 

Attachments:

hi 筑梦NARUTO

thanks alot, that was a straightforward algorithme

so appearently there is no readymade function of the ribbon command neither in the rhinoscript nor in the rhinocommon library

now that you've shown me the way, I will try and tweek the code to make the offset work in both directions of the curve, or specifiy the options [outward, inword, bothsides]

I still have one question:

what does this if statment stand for :

if rs.Distance(pt1_start,pt2_start)<1.1*dis:

what is the effect of [<1.1*dis] and [>1.1*dis]

I dond't get the point of the distance check because my knowledge of the addPlanaSurface is quite basic

thanks again

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