Can I do the reverse of sweep1?

Can I do the reverse of sweep1?
Example: Create a curve from a tubular solid through its center.

1 Like

Hello - you can try this script -

ExtractPipeCL.py (4.0 KB)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"

-Pascal

2 Likes

Hi Pascal,
Thank you for the script!!
I’ll try it!

Dear @pascal

just had a glimpse on the script / code you posted. The script will:

  • will draw a point, line or arc depend on the input
    • a centerpoint for a sphere
    • the axis / (line) of a cylinder or cone
    • the center-arc of a torus

is this correct / the intention ?

Is there a command / script to get the center-curve of a fillet ?

  • in best case a fillet with variable Radius ?
    I know i can construct it via fin / offset Srf. But I remember there was some fast way (command / script ) posted maybe 1 or 2 years ago.
    do you remember ?

thanks - kind regards - tom

1 Like

That would be way too good to be true! :smiley:

1 Like

@pascal , is that any better than the older script that you made some time ago? I use this instead:
ExtractCenterline.py (6.5 KB)

@Rhino_Bulgaria @Tom_P - I think this one was spruced up to try to find CLs of other geometry than just pipes - a user request at the time - ages ago. I think the axes etc. are part of that.

-Pascal

So, which one is better in your opinion? I see no difference in the way they find the center line of pipes, arc fillets, cones and tori (toruses). :slight_smile: Both do their job equally good.

EDIT: I actually found one difference between them. Looks like the ExtractCenterline script does better job at finding the centerline of variable radius pipes, albeit made from multiple straight segments. On the other hand, the ExtractPipeCL script failed to do so and built much more complex polyline outside of the input geometry. You can test it on this 3d scene:

ExtractCenterline vs ExtractPipeCL.3dm (184.9 KB)

1 Like