Grasshopper

algorithmic modeling for Rhino

Hi guys, I'd like to create a small gap on my distorted octagon.. What I did was to find the mid point of one of the sides, then create circle CNR, and trim with region after that. However, I'm having a problem aligning the circle to the direction of the curve. It won't trim if the circle is not aligned with it. I've tried to input the normal vector with the corresponding curve, but it goes perpendicular to what I want. Is there maybe an expression editor that I could input to undo the perpendicular alignment? Thank you!

 

I've attached my files..

 

Views: 1207

Attachments:

Replies to This Discussion

I don't have time to look at your definition right now but you can probably extrude the circle a little bit (both ways) and get the intersection points.

Chris

Use the Extend component, but with  L0 and L1 being < 0.

This will create a gap at the start/end point of your curve.

To change this point, type :

x.ChangeClosedCurveSeam(y)

A = x

in a vb script, the y is the parameter on curve x which will be the new start/end point.

 

Attachments:
Thank you, but sorry that I can't understand your solution.. Is there any simpler way of doing it without vb script? I just need a tiny gap in the middle of the line to determine the unrolling split point.

Hi, Ruby..

me again..

just use sphere instead of circle.. 

 

..here is the file..

 

Attachments:
Thanks again, Dimitri!

You could also get a subdomain of your curve with the SubCurve component, but it would also involve changing the start/end point.

The sphere cutting method from Dimitri is simpler.

Hello everybody, sorry for bringing up this question again. Once I changed my surface in rhino, both circle and sphere do not intersect my curves to create a gap at every tube. I have also tried to divide the line to get two points in the middle for intersection, but not sure what's the next step.. Could anybody PLEASE suggest something asap? Thank you much..

 

Ruby

Attachments:
actually, the sphere do the trimming, but my curves won't loft after that.. and the number of the "split curve outside brep" is just enormous..

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