Method MergeUVIslandsAffine
MergeUVIslandsAffine(OccurrenceList, int, double, double, double, double, double, TransformationType, bool, double)
WARNING: this function is tagged as 'EXPERIMENTAL'
Minimizes the number of seams in the UV mapping by merging UV islands using affine transformation (recommanded for hard surfaces)
Declaration
[HandleProcessCorruptedStateExceptions]
public void MergeUVIslandsAffine(OccurrenceList occurrences, int channel = 0, double scaleWeights = 0, double maxScaleVariationFactor = 1.2, double curvatureWeights = -1, double usePolygonsWeights = 1, double useVerticesWeights = -1, TransformationType allowedTransformations = TransformationType.TRSOnly, bool allowUVInversion = false, double rotationStep = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| OccurrenceList | occurrences | Part occurrences to process |
| int | channel | UV channel to merge |
| double | scaleWeights | Weight to assign to scale for the merging priority |
| double | maxScaleVariationFactor | Maximum scaling factor allowed, -1 meaning no limits |
| double | curvatureWeights | Weight to assign to curvature for the merging priority |
| double | usePolygonsWeights | Use polygons weights to prioritize seams between polygons with less weight. The value represents the feature weight |
| double | useVerticesWeights | Use vertices weights to prioritize seams where vertices with less weight. The value represents the feature weight |
| TransformationType | allowedTransformations | Allowed transformation: TRSOnly or TRS+Skew |
| bool | allowUVInversion | Allow merged UVs to be inverted |
| double | rotationStep | Constrains rotation steps to the specified angle (in degrees). If set to -1, allows free rotation |