Method CreateVertexWeightsFromVertexColors
CreateVertexWeightsFromVertexColors(OccurrenceList, double, double)
Use vertex colors attributes on meshes of the given occurrence to create vertex weights attributes used by the decimation functions, the finals weights will be computed with w = offset + (red - blue) * scale
Declaration
public void CreateVertexWeightsFromVertexColors(OccurrenceList occurrences, double offset = 0, double scale = 1)
Parameters
Type | Name | Description |
---|---|---|
OccurrenceList | occurrences | Occurrences of components to process |
double | offset | Offset value for weight computation |
double | scale | Scale value for weight computation |