RhinoCommon API
BrepMergeSurfaces Method (Brep, Brep, Double, Double) | 
            Merges two surfaces into one surface at untrimmed edges. Both surfaces must be untrimmed and share an edge.
            
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)
public static Brep MergeSurfaces( Brep brep0, Brep brep1, double tolerance, double angleToleranceRadians )
Public Shared Function MergeSurfaces ( brep0 As Brep, brep1 As Brep, tolerance As Double, angleToleranceRadians As Double ) As Brep
Parameters
- brep0
 - Type: Rhino.GeometryBrep
The first single-face Brep to merge. - brep1
 - Type: Rhino.GeometryBrep
The second single-face Brep to merge. - tolerance
 - Type: SystemDouble
Surface edges must be within this tolerance for the two surfaces to merge. - angleToleranceRadians
 - Type: SystemDouble
Edge must be within this angle tolerance in order for contiguous edges to be combined into a single edge. 
Return Value
Type: BrepThe merged Brep if successful, null if not successful.