Conversion of Pipes into Rectangular cuboids around a curve

Hello all, I am trying to convert the pipe into a rectangular cuboid for visualization of layers of a 3D printed shape by a rectangular nozzle. but unfortunately, I could not do that.

anyone knows how to do it? I need the rectangular cuboid of specific Width and Height between two G-Code points. (As same as pipes are drawn in the example here)

The file is attached. Thank You!


PipeToRectanglarCubiodShape.gh (21.9 KB)

Sweep a rectangle along the curve instead of using pipe.

I did, but It is not making a geometry like 3D pipes.

Also, I want the curve to be in center and the 3D geometry around it. But “Rectangle” is taking the point on curve as a starting point.

How to resolve these two problems?

I did, but It is not making a geometry like 3D pipes.

Use sweep 1

Also, I want the curve to be in center and the 3D geometry around it. But “Rectangle” is taking the point on curve as a starting point.

Rectangle size uses domains.


sqaure pipe.gh (8.0 KB)

I have used domains and the alignments are now somewhat okay but yet there are some points where the rectangular shape is not aligned and also the rectangular shape is not drawn at the list length.

Can you help me with these to issues?
File and screenshot are attached herewith.


PipeToRectanglarCubiodShape.gh (25.5 KB)

PipeToRectanglarCubiodShape_re.gh (48.4 KB)

1 Like

Damn, seems like @dowazura was faster. :wink:
Anyway, here’s my similar solution:

PipeToRectanglarCubiodShape2.gh (28.3 KB)

1 Like


Rec Sweep.gh (45.1 KB)

2 Likes

Problem solved!
Thank you all :slight_smile: