Method MergePartOccurrencesByMaterials
MergePartOccurrencesByMaterials(OccurrenceList, bool, MergeHiddenPartsMode, bool)
Merge a set of parts by materials
Declaration
[HandleProcessCorruptedStateExceptions]
public OccurrenceList MergePartOccurrencesByMaterials(OccurrenceList partOccurrences, bool mergeNoMaterials = true, MergeHiddenPartsMode mergeHiddenPartsMode = MergeHiddenPartsMode.MergeSeparately, bool combineMeshes = true)
Parameters
| Type | Name | Description |
|---|---|---|
| OccurrenceList | partOccurrences | Occurrence of the parts to merge |
| bool | mergeNoMaterials | If true, merge all parts with no active material together, else do not merge them |
| MergeHiddenPartsMode | mergeHiddenPartsMode | Hidden parts handling mode, Destroy them, make visible or merge separately |
| bool | combineMeshes | If true, explode and remerge the input parts by visible materials |
Returns
| Type | Description |
|---|---|
| OccurrenceList |