# Weld Curves?

Is there Weld Curves in Rhino ? Welding the Shapes

In Rhino, the term â€śWeldâ€ť is only used to fiddle with the display smoothing of meshes.

What problem are you trying to solve?
I suspect there is a command or commands that do what you want.
Is it removing the curve segments where the longer lines cross?
f so, the command would be Trim.
Please start the command and press F1 to see the help article for it.

Any luck?

I think you might want to look at CurveBooleanâ€¦

Actually itâ€™s also hard to do with CBâ€¦ What is possible is to make PlanarSrfs from the curves, then BooleanUnion them, (watch out for normal directions) and then MergeAllFaces.

@PowerShape Here is another quickie hackie script to do this automagicallyâ€¦

Here is a revised version that is a bit better. Output is joined and grouped.

UnionClosedCoPlanarCrvs.py (2.3 KB)

2 Likes

bunu Rhinoya nasÄ±l entegre edebilirim ?

Translation (Turkish?):

## Translation results

How can I integrate this into Rhino?

https://wiki.mcneel.com/developer/macroscriptsetup

Bunu yapamadÄ±m. Bunun iĂ§in Ă¶rnek bir video varmÄ±? TeĹźekkĂĽr ederim.

Canâ€™t help you there. No, there are no videos to show how to make scripts run in Rhino that I know of.

1 Like

tamam teĹźekkĂĽr ederim

Your â€śscriptâ€ť still fails. 1 simple example

Yes, itâ€™s not really designed for overlapping nested curves like that.

Do you have any other scripts that can do that?

No. The problem is that one still must decide what is a hole (delete) and what is around it (keep). A script can probably be concocted that would work for this particular configuration, but would fail for others.

The best thing to do is plan ahead for this situation - in this case if you make one surface with a hole in it out of two nested squares and then multiply that, PlanarUnion will work to get what you want.