Method AutomaticUVMapping
AutomaticUVMapping(OccurrenceList, int, double, double, bool, bool, uint, uint)
WARNING: this function is tagged as 'EXPERIMENTAL'
Generates the texture coordinates and automatically find seams
Declaration
[HandleProcessCorruptedStateExceptions]
public void AutomaticUVMapping(OccurrenceList occurrences, int channel = 0, double maxAngleDistorsion = 0.5, double maxAreaDistorsion = -1, bool sharpToSeam = true, bool forbidOverlapping = true, uint resolution = 1024, uint padding = 1)
Parameters
Type | Name | Description |
---|---|---|
OccurrenceList | occurrences | Part occurrences to process |
int | channel | The UV channel which will contains the texture coordinates |
double | maxAngleDistorsion | Maximum angle distorsion |2PI-SumVtxAng|/2PI |
double | maxAreaDistorsion | Maximum area distorsion before scale to 1. |2DArea-3DArea|/3DArea |
bool | sharpToSeam | If enabled, sharp edges are automatically considered as UV seams |
bool | forbidOverlapping | If enabled, UV cannot overlap |
uint | resolution | Resolution wanted for the final map when repacking at the end |
uint | padding | Set the padding (in pixels) between UV islands when repacking at the end |