Grasshopper

algorithmic modeling for Rhino

I'm struggling to make a piped polyline where the individual pipe sections of the polyline can be shortened to create a gap between the pipe sections. The miter angles of the sections and the pipe diameter are to be preserved.

Anyone have any suggestions? DeBrep the pipe into its components did not work work out.

Views: 1689

Replies to This Discussion

Attachments:

Joseph, thanks for your reply. I need to preserve the miter angles on the sections.

One way might be to create angled planes at each discontinuity point then move these planes towards the centre of the polyline segments. Use these planes to get intersections with the pipes and then loft these intersections.

pframes does not give me the planes I need. Do you have an easy way for generating the planes.

Attachments:

Joseph, ah, much closer. I can tell I did a poor job giving exact goals. I need to just scale the length of the pipe and by a distance. I may try a bit with the length of the polyline segment and figure the reduction size. I would also need to do it with the line segment being the Z axes of the pipe segment plane. 

Go for it!  Show us how.  I'm here to have fun, not do your work for you.  You're welcome.

Sorry, here my struggles based on DeBrep 

Attachments:

Here is another failed effort...  After 'DeBrep' of the pipe, I grabbed the edges of the segments (the cross section ovals at the miter joints) and moved them toward the center of each segment, then lofting them.  Unfortunately, these re-constructed end curves are not aligned and so the loft is twisted.

I ran into that issue as well. I adjusted the seams and had to flip one of the ovals. You definitely helped me working through this (and not quite done yet), mucho appreciated!

So here is my fourth attempt - I don't know if it works for your test example because you didn't include the polyline in your code.

Attachments:

My last version works with an approximation of your example (I used your test.gh to re-create a polyline); this animation reveals what I did:

Inevitably though, it will fail when the boxes intersect in unwanted ways.

Attachments:

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