Brep.MergeAndKeepFaces (IList<Brep>, MaterialKeyedCollection) Method

Merges a list of Brep objects preserving only one copy of duplicated face.
Public Shared Function MergeAndKeepFaces( _ 
ByVal breps As IList(Of Brep), _ 
Optional ByVal materials As MaterialKeyedCollection = null _ 
) As Brep
This language is not supported or no code example is available.
public static Brep MergeAndKeepFaces( 
IList<Brep> breps
MaterialKeyedCollection materials = null 
)
This language is not supported or no code example is available.

Parameters

breps
IList<Brep>

The list of Breps objects to merge

materials
MaterialKeyedCollection

The materials collection. When defined, the resulting Brep faces colors will conserve the input objects colors.

Return Value

Brep

A single Breps, with only one copy of -internal- duplicated faces when successfully merged. Null/Nothing otherwise.

Remarks
 

Original objects must not intersect and faces must be compatible (equal and opposite).

You may need to call Rebuild on original objects to rebuild parametric faces.

.NET Framework

Supported in: 4.7.2

In this article

Definition