Draw a regular rectangle based on the line

As shown in the attached image, we want to draw a regular rectangle based on the line and convert the rectangle to a surface. I want to ask the experts. How would you like to organize your dynamo nodes?

1 Like

Hi @GGG

there is a usefull external node called Curve.SmartOffset by WombatDynamo. You just need to input offset distance. With a negative value it goes to the opposite way.

2 Likes

@GGG @Meychik ,

my ileagal coffee break! :wink:

3 Likes


Your ideas have been a great help. Thank you

[image]

2 Likes

thank you very much for your sincere reply ^^

2 Likes

I’d go a different direction on this one.

  1. Read in the curve
  2. get the curve’s length, divide by how many of my base rectangle I wan to fit, to get the width of my rectangles
  3. Draw a rectangle of the width calculated in step 1 and length desired, and patch it to a surface.
  4. Translate the rectangle by 1/2 of the width and length so that it sits on the corner of the origin.
  5. Pull a number of coordinate systems along the original line using a Coordinate System at Parameter method.
  6. Transform the rectangle by the coordinate systems.
2 Likes

Hello, here is another possibility

script:
23 Novembre forum anglais.dyn (24.9 KB)

Cordially
christian.stan

1 Like