©2009 Google -
Code Home -
Terms of Service -
Privacy Policy -
Site Directory
Google Code offered in:
English -
Español -
日本語 -
한국어 -
Português -
Pусский -
中文(简体) -
中文(繁體)
The UV Helper class contains methods allowing you to determine the location
(UV coordinates) of a texture on a face. This class is particularly useful
in determining how textures that have been manipulated using the Texture
Tweaker should appear when exported to another file type
Use the Face.get_UVHelper method to create a UVHelper for a given face.
See the TextureWriter class as well.
The get_back_UVQ method is used to get the UV coordinates for the back of a face.
Arguments:
Returns:
uv_helper = face.get_UVHelper true, true, my_texture_writer face.outer_loop.vertices.each do |vert| uvq = uv_help.get_back_UVQ(vert.position) puts "u=" + uvq.x.to_s + " v=" + uvq.y.to_s end
The get_front_UVQ method is used to get the UV coordinates for a front of a face.
Arguments:
Returns:
uv_helper = face.get_UVHelper true, true, my_texture_writer face.outer_loop.vertices.each do |vert| uvq = uv_helper.get_front_UVQ(vert.position) puts "u=" + uvq.x.to_s + " v=" + uvq.y.to_s end