## AssembleNurbsMesh

### Description

Assembles surfaces into a surface mesh.

### Scripting Syntax

    AssembleNurbsMesh( InputObj, [Tolerance], [CopyUserCluster], [CopyMaterial], [CenterGeomCenter] );

### Parameters

Parameter | Type | Description
--- | --- | ---
InputObj | String | List of nurbs surfaces. Default Value: Currently selected objects
Tolerance | Double | Tolerance (a value between 0.0 to 1.0) for building topology. Used to check if two points can be treated as equal. Default Value: 0.15
CopyUserCluster | Boolean | True to copy clusters. Default Value: False
CopyMaterial | Boolean | True to copy materials and textures. Default Value: False
CenterGeomCenter | Boolean | True to move the center to the geometric center. Default Value: True

### Examples

#### VBScript Example

    'This example assembles 4 grids.
    'Assemble is not an operator and its inputs can be deleted.
    newscene
    'Create grids to assemble
    CreatePrim "Grid", "NurbsSurface"
    Duplicate "grid", , 2, 1, 1, 0, 0, 1, 0, 1
    Translate , 8, 0, 0, siAbsolute, siParent, siObj, siX
    ToggleSelection "grid", , True
    Duplicate "grid1,grid", , 2, 1, 1, 0, 0, 1, 0, 1
    Translate , 0, 0, 8, siAbsolute, siParent, siObj, siZ
    ToggleSelection "grid", , True
    ToggleSelection "grid1", , True
    'Assemble selection without carrying over user clusters nor material
    'The tolerance gap to assemble is 0.15 softimage units.
    AssembleNurbsMesh , 0.15, False, False, True
    SelectObj "surfmsh"
    AutoInspect "surfmsh", , siRecycle
    'Delete the input grids... Assemble is not linked by an operator.
    SelectObj "grid"
    ToggleSelection "grid1"
    ToggleSelection "grid2"
    ToggleSelection "grid3"
    DeleteObj "grid,grid1,grid2,grid3"
    'Move some points, notice that the seams stay together.
    SelectObj "surfmsh", , True
    ActivateVertexSelTool
    SelectGeometryComponents "surfmsh.pnt[(0,0,7),(0,1,7),(0,2,7),(0,0,8),(0,1,8),(0,2,8),(1,8,7),(1,9,7),(1,10,7),(1,8,8),(1,9,8),(1,10,8)]"
    Translate , 0, 5, 0, siRelative, siView, siObj, siXYZ
    SelectGeometryComponents "surfmsh.pnt[(0,0,3),(1,10,3)]"
    Translate , 0, 10, 0, siAbsolute, siParent, siObj, siY