Mesh.CreateFromCurvePipe bugs

Hi @dale,

i’ve collected some curves from todays trials to use Mesh.CreateFromCurvePipe method. It has a high failure rate even with the simplest curves. On closed curves, the ends to not match. Almost all curves i’ve tried resulted in a mesh with naked edges which cannot be welded in order to obtain a closed pipe (with open end caps).

Even _AlignVertices was not able to fix the pipes prior welding. Please find my example script and file below.

MeshCreateFromCurvePipe.3dm (109.8 KB)
MeshCreateFromCurvePipe.py (1.1 KB)

Btw. the accuracy argument in the docs needs some love (eg. range of possible values). Ramping this value up can make some heavy meshes…

thank you,
c.

Hi @clement,

Seems pretty flawless here:

Am I missing something?

– Dale

Hi @dale, please run _ShowEdges on the resulting meshes. I have this:

Closed curves result in this:

I don’t understand that naked seam placement:

A (planar) rectangle looks like this:

do you have different results or changed something in the example script maybe ?

thanks,
c.

Hi @clement,

If you just use Rhino (Properties > Curve Piping) and then extract the render mesh, do you get the same junk?

– Dale

Hi @dale, yes. The naked edges are identical. Is the mesh pipe supposed to have a seam along the curve at all ? There is none for the knot like curve, only at start / end. But there is one for other closed curves…

btw. use ShowEdges and compare "All edges " and “Naked edges”:

_
c.

Hi @clement,

For now, use Brep.CreatePipe and then mesh the results if you need it.

I don’t know a whole lot about curve piping. But I’ll open a ticket s a developer can investigate.

https://mcneel.myjetbrains.com/youtrack/issue/RH-86321

Thanks,

– Dale

2 Likes

Hi @dale, ok thanks.

_
c.