Method ConvertSimilarPartOccurrencesToInstances
ConvertSimilarPartOccurrencesToInstances(OccurrenceList, bool, bool, int, bool, bool, int)
Create instances from similar part occurrences with an accurate method based on topology checksums. This can be used to repair instances or to simplify a model that has similar parts that could be instantiated instead to reduce the number of unique meshes (reduces drawcalls, GPU memory usage and file size).
Declaration
[HandleProcessCorruptedStateExceptions]
public void ConvertSimilarPartOccurrencesToInstances(OccurrenceList occurrences, bool checkMeshTopo, bool checkVertexPositions, int vertexPositionPrecision, bool checkUVTopo, bool checkUVVertexPositions, int UVPositionprecision)
Parameters
Type | Name | Description |
---|---|---|
OccurrenceList | occurrences | Occurrence for which we want to find similar parts and create instances using prototypes. |
bool | checkMeshTopo | |
bool | checkVertexPositions | |
int | vertexPositionPrecision | |
bool | checkUVTopo | |
bool | checkUVVertexPositions | |
int | UVPositionprecision |