Improving on the sweep of a handrail along a path

Hi, I am a long time AutoCAD user who is new to Rhino. I’m really impressed with Rhino’s capabilities. I’ve attached a file in which I have 2 questions:

  1. Is there a way perhaps using Grasshopper to create “dynamic” lines that could be trimmed to a particular size using lines and part of an arc or ellipse, but then would at the same time activate the lengths of corresponding lines in another place inside the model? Currently, I am manually creating the line lengths and then moving them to their respective places one by one inside the model space. This is time consuming and if I want to adjust the curvature, I must start the whole process over again.

  2. After connecting to points at the tops of the lines, 2 rails are created using the offset tool. I am then able to sweep the handrail profile (using sweep2) and keep the bottom of the profile parallel to the ground which is imperative. Where I am having difficulty is in keeping the profile perpendicular to the tangent of the path in plan (top view). If you see, you will notice that the profile seems to skew a bit in plan and thus warps the inside curvature and overall thickness of the handrail. For a good outcome, it’s imperative that the profile to stays parallel to the ground and also stay perpendicular to the tangency of the path.
    I hope I’ve explained this clearly…thanks
    25-02-23 Wreath Study.3dm (557.1 KB)

  1. It sounds like a job for Gh but it is not easy to understand the job from your description.
    We love sketches.
  2. Your section profile is ‘almost perpendicular’ at every point. The bounds in the lower-right corner indicate deviations, acceptable or not. Maybe the result would have been better using loft through multiple sections.

Hi Peter,

Welcome!

Re. your first question: yes, but maybe as a first step, instead of moving your lines “one by one”, you could explore the _Flow (Flow along curve) command which allows you to place them all in one go.

Before:

After:

Re. your second question, you can do this with _Sweep1. Simpler and therefore quicker.

The ‘trick’ to this is to ensure that your rail is a) on the surface of the profile and not somewhere within it because the latter seems to mess with Rhino’s head a bit. And b) you need the rail to coincide with the profile’s seam point for best results. I moved the rail up to the top of the profile to get this (see note below, though). Next you need to select the ‘Roadlike’ option and then click the ‘Set axis’ button and select two points that indicate a vertical direction (I used the middle bottom of the profile, then the middle top).

The seam is the point where you profile curve starts and ends. It is good practice to shift this to somewhere it won’t be a nuisance (using _CrvSeam). In this case I would choose one of the bottom corners of the profile. I would then offset the rail to coincide with this point:

25-02-23 Wreath Study 001.3dm (454.3 KB)

HTH
Jeremy

2 Likes

sweep 1 with 2 profiles and a vertical roadlike axis and global blending seems to do the trick here unless I’m missing something-


wreath_kfix.3dm (393.0 KB)

2 Likes

Wow! Yes Kyle what you say appears to be correct. Thanks!

Thank you Jeremy, both your suggestions work well. I’m going to have to fiddle around with the _Flow option but it makes good sense.