Backface UVs - How?
-
I see that there are some bugs in the api docs on mesh.uv_at. Can someone enlighten me on how to get the UV's of the back face? I know I can get the fronts with mesh.uv_at(3,1).x The first index is the point, the second index (1) should be the flag for front or back, yes? I've tried using true/false but no luck.
-
what flags did you use when you obtained the PolygonMesh?
Face.mesh
http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/face.html#mesh@unknownuser said:
Add these numbers together to combine flags. A value of 5 will include all flags, for example.
This is wrong. 7 is the value if you want to include them all. It's a bitwise combination of the optional values.
-
@thomthom said:
what flags did you use when you obtained the PolygonMesh?
Face.mesh
http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/face.html#mesh@unknownuser said:
Add these numbers together to combine flags. A value of 5 will include all flags, for example.
This is wrong. 7 is the value if you want to include them all. It's a bitwise combination of the optional values.
Thanks for that. Indeed, I was using 5 instread of 7 as the mesh flag.
Thanks again
Advertisement