Grasshopper

algorithmic modeling for Rhino

He guys,

My problem looks simple but for me rather difficult to solve. I want to offset a curve (for a railing for a staircase) with al the same offset distance. If you ofset a curve in the xy plane it works perfect, but in the z dir it is more tricky, especially if your curve is more complex. Attached is an image with my problem. 

I managed to script it for ´simple´curves, but still it is really buggy so i was wondering if there is a smart way of approaching this.

Views: 1365

Attachments:

Replies to This Discussion

Using your 'simple' case. 

 

Chris

Attachments:

Thanks Chris,

unfortunatley it doesnt work if the angle for the corner is more or less then 90 degrees, also if the landings are more or less than 60(?) degrees... For the first problem maybe get a plane tangent to the individual line pieces, then if that offset work how to join the offsetted lines pieces in a proper way.

Hi Arie-Willem,

 

I think Chris and Pieter's Definitions have got what you need already.

You just need to filter the result.

 

Jack

Attachments:

Hoi Arie, please test my late night approach...:

Attachments:

Good morning Arie-Willem, seems I really needed some sleep;)

Edit: I noticed last night that my first attempt failed when the stairs went further 'around a cube' if you know what I mean. You will have to use landings for it to work everywhere.

Attachments:

Thanks Pieter and Jack for your interesting approaches, The thing is that my stair is NOT bending under 90 degrees (which would make it fall onto the xz or yz plane) I was thinking of mabybe a pipe the curve and project the line in the z-dir see example. It works, but some corners are still messy. See attached. I will digg a little further on this. 

Thanks again, cheers!

 

Attachments:

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service