Revit API: IExportContext converting UV to the range (0,1)

Not applicable
07-15-2020
02:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I'm writing an exporter for Revit and encountered with a problem when exporting UV. When I call PolymeshTopology.GetUV, the coordinates given are often larger than 1. My Questions are:
1. How can I convert them to the desired range (0,1)? Or how should I understand these UV values?
2. Are they coordinates on the image? And If they are indeed coordinate on the image, how can I access the size of the image in IExportContext?
Thanks in advance!