NURBS Curves and Surfaces/ Welding

Welding

 

The Welding tool connects two surface edges with a special purpose 'weld' object. Basically, the weld object is a NURBS mesh with some additional intelligence so that it maintains a seamless joint between the specified edges.

Any two edges with different point counts, orders and other properties can be welded.

To connect two meshes, one polygonal and one smooth surface, by welding:

1. Create two NURBS meshes: a polygonal one and a cubic one.

 
Two NURBS meshes with a different order and density

2. Select both meshes. The control bar now shows you the weld tool.


The weld tool

Activate the tool. The tool automatically welds the two surfaces. You can change the weld by dragging  a line over the mesh, near the edge you want to weld. The line you draw also defines the direction of the weld mesh.


Mark two edges to be welded
 
Note: you have to drag over the meshes (inside the mesh boundaries), as shown in the image above.

If you accidentally marked a wrong edge, you can drag again to fix the error. There is no need to restart the tool.

3. When the desired edges are welded, click 'Accept' to finish the tool. The two meshes are now connected.


A polygonal and a cubic mesh welded

 
You can modify the original meshes after welding. The shape of the welding surface is updated accordingly.
 
Tutorial project: 'tutorprojects\modeling\nurbs\weld\weld'
 

Closed surfaces

When welding closed surfaces (such as pipes, for example), there is an additional freedom to control the 'twist' of the welding surfaces (the positions where the 'u=0' isoparametric curve meets the surfaces).

Let's connect two NURBS cylinders with each other to demonstrate this.

1. Use the NURBS/Cylinder tool to create two NURBS tubes (reset the 'Filled' option).


Create two NURBS tubes

In order to see the 'twist' effect, switch to the wire frame rendering mode.

2. Select both NURBS tubes. The control bar now automatically shows you the Weld tool. Activate the tool and drag along the edges to be welded, then Accept the tool.



Mark an edge from both cylinders. Drag points will determine the start and end points for the first isoparametric curve of the welding mesh.


Welded  tubes
 

Welding surfaces and trim curves

Welding tool also allows you to weld the edges of trimmed surfaces.

1. Create a NURBS surface.


A NURBS surface
 

2. Select the surface and activate the Unified/Curve tool. Set the 'Class' option to 'Trim curve' and enter a desired number of control points over the NURBS surface to trim it.


A trimmed surface

3. Use sweep or another appropriate tool to create a NURBS tube.

4. Select the trim curve and the tube and activate the Weld tool from the pull-down menu 'Tools/NURBS Construction/Weld Edges'.

Note: a mesh can contain any number of trim curves. You have to select the actual trim curve to which the weld mesh should be attached!


Select the trim curve and the tube mesh.

Mark an edge from both surfaces to weld them.  Note: both edges are closed - by controlling the drag start points, you can control how 'twisted' the weld surface will be.


Mark the edges to be welded
 


The trimmed surface edge welded with the end point of the tube
 
 

Welding two trimmed surfaces

The Weld tool can also weld two trimmed meshes with each other.

1. Create two trimmed NURBS surfaces somewhat parallel to each other.


Two trimmed meshes

2. Select both trim curves, click the Weld tool of the 'NURBS' tool tab and mark edges to create a weld surface.


Two trim curves welded

The trimmed edges are now smoothly joined with each other. Let's play with this example a little bit more.

3. Select both trim curves and click the 'Invert' tool in the control bar (it's located at the far right end).

This inverts the inside/outside property of the selected trim curves and they trim out the outer part of the surface.


Trim curves inverted

4. Select the weld surface and open the property window. Go to the 'Spec' tab. Here you can see two 'Size' fields, which define how sharp the weld surface is at its boundaries. The smaller the value, the sharper the joint.

If you want completely sharp edges, set these values to zero. We just want to change the direction of the weld surface (the edges of the weld surface should point outwards rather than inside).


The radius fields of the weld surface

Change the sign of both the values (make them negative).
 


Weld surface with negative size attributes
 
Tutorial project: 'tutorprojects\modeling\nurbs\weld\welded trims'
 

Note: you can create any number of trim curves to both surfaces and connect them with the weld tool. Also the weld surface itself can be trimmed and welded with another weld surface.


Two trimmed edges connected with the weld tool
 

Controlling the accuracy

When connecting the edges of the surfaces, the weld surface is capable of following the shape of both the edges exactly. However, when welding trim curves, it is mathematically impossible to create an exact weld surface for the trim curve.

If the joint is not accurate enough, increase the number of control points of the trim curves. The higher the point count of the trim curves, the more accurate the weld becomes.