Is there any way to determine how revit calculate texture uv coordinates?

Is there any way to determine how revit calculate texture uv coordinates?

shushenrui1996
Contributor Contributor
962 Views
4 Replies
Message 1 of 5

Is there any way to determine how revit calculate texture uv coordinates?

shushenrui1996
Contributor
Contributor

Hi. I'm using Revit API to export 3d geometry data from rvt files.  It's very easy to export mesh data and uv coordinates by OnPolymesh() method. But once I try to export geometry in a parametric way( using  OnFaceBegin() method to get faces and loops, and then triangulate them in my own brep renderer), it seems that I can not find a way to correctly calculate the uv coordinates from face modelling parameters and revit texture properties in my own brep renderer.

Is there anything I can do about this? Thanks!

0 Likes
Accepted solutions (1)
963 Views
4 Replies
Replies (4)
Message 2 of 5

RPTHOMAS108
Mentor
Mentor

The UV are the parameters across the surface no? They are not always measured in the units you expect perhaps.

Mathematical representation of face types | Revit | Autodesk Knowledge Network

 

It is probably just that the UVs are not in the units suitable for the sample size of the texture image. You would have to elaborate more on the results you are getting.

 

 

0 Likes
Message 3 of 5

jeremy_tammik
Alumni
Alumni
Accepted solution

Maybe it will be useful taking a look at Hybrid Revit Families: Complex Organic Objects with Correct Texture Mapping:

  
https://www.autodesk.com/autodesk-university/article/Hybrid-Revit-Families-Complex-Organic-Objects-C...

  

Tablecloth in RevitTablecloth in Revit

    

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 4 of 5

shushenrui1996
Contributor
Contributor

This helps a lot. Thank you very much!

0 Likes
Message 5 of 5

shushenrui1996
Contributor
Contributor

 The unit is converted correctly so I wonder whether it's my uv mapping algorithm issue... Thanks for your reply!

0 Likes