Class: Sketchup::UVHelper
- Inherits:
-
Object
- Object
- Sketchup::UVHelper
- Defined in:
- lib/sketchup-api-stubs/stubs/Sketchup/UVHelper.rb
Overview
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.
Instance Method Summary collapse
-
#get_back_UVQ(point) ⇒ Geom::Point3d
The #get_back_UVQ method is used to get the UV texture coordinates on the back of a face.
-
#get_front_UVQ(point) ⇒ Geom::Point3d
The #get_front_UVQ method is used to get the UV texture coordinates on the front of a face.
Instance Method Details
#get_back_UVQ(point) ⇒ Geom::Point3d
To convert UVQ coordinates to UV, divide U and V by Q.
u = uvq.u / uvq.q
v = uvq.v / uvq.q
The #get_back_UVQ method is used to get the UV texture coordinates on the back of a face.
41 42 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/UVHelper.rb', line 41 def get_back_UVQ(point) end |
#get_front_UVQ(point) ⇒ Geom::Point3d
To convert UVQ coordinates to UV, divide U and V by Q.
u = uvq.u / uvq.q
v = uvq.v / uvq.q
The #get_front_UVQ method is used to get the UV texture coordinates on the front of a face.
68 69 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/UVHelper.rb', line 68 def get_front_UVQ(point) end |