Grasshopper

algorithmic modeling for Rhino

Curved + Filleted Stair - Offsetting portions of poly line by different distances

Hi all,

I've designed a stair (first photo), loosely based on the stair in the photo below. I want to get a basic definition into Grasshopper so I can change change the angles and areas in the plan, tweak the tread depths, etc. without having to manually re-build the entire model every time I want to tweak it. I am a newish Grasshopper user though and haven't used it in a while. My first attempt used a simple offset to get the stair treads, but the problem is I want different sections of stair to offset different distances (one section at 280mm deep, one at 600mm deep etc). So in my second attempt I tried to use point, drew lines between them, determined the tangent at each line midpoint and shifted the points along that vector. After which my plan is to re-create a polyline and fillet with the same fillet radius. This is an extremely clunky way and I realize there must be a better way. I am surprised there doesn't seem to be anything similar online or in this forum though. If anyone has time, I would much appreciate some help as to how to better design this definition. Thanks!

Views: 726

Attachments:

Replies to This Discussion

Points that establish the initial polyline are internalized.

Attachments:

Thanks Joseph! I'm going to sped some time figuring out whats going on, but that is exactly what I was after. cheers

It has distinct limitations, as you'll soon see, caused by overlapping extended lines.  Too many steps, for example, causes problems.  It's complicated to do in a general way, especially if you want to add flourishes like those in your second image.  Very terrain-dependent, probably easier in the end to do by hand.  Not that this is the only way to code it, of course!

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