com.jme3.scene.plugins.blender.textures
Class UVCoordinatesGenerator
java.lang.Object
com.jme3.scene.plugins.blender.textures.UVCoordinatesGenerator
public class UVCoordinatesGenerator
- extends java.lang.Object
This class is used for UV coordinates generation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UVCoordinatesGenerator
public UVCoordinatesGenerator()
generateUVCoordinatesFor2DTexture
public static java.util.List<Vector2f> generateUVCoordinatesFor2DTexture(Mesh mesh,
UVCoordinatesGenerator.UVCoordinatesType texco,
com.jme3.scene.plugins.blender.textures.UVProjectionGenerator.UVProjectionType projection,
java.util.List<Geometry> geometries)
- Generates a UV coordinates for 2D texture.
- Parameters:
mesh
- the mesh we generate UV's fortexco
- UV coordinates typeprojection
- projection typegeometries
- the geometris the given mesh belongs to (required to compute
bounding box)
- Returns:
- UV coordinates for the given mesh
generateUVCoordinatesFor3DTexture
public static java.util.List<Vector3f> generateUVCoordinatesFor3DTexture(Mesh mesh,
UVCoordinatesGenerator.UVCoordinatesType texco,
int[] coordinatesSwappingIndexes,
java.util.List<Geometry> geometries)
- Generates a UV coordinates for 3D texture.
- Parameters:
mesh
- the mesh we generate UV's fortexco
- UV coordinates typecoordinatesSwappingIndexes
- coordinates swapping indexesgeometries
- the geometris the given mesh belongs to (required to compute
bounding box)
- Returns:
- UV coordinates for the given mesh
getBoundingBox
public static BoundingBox getBoundingBox(java.util.List<Geometry> geometries)
- This method returns the bounding box of the given geometries.
- Parameters:
geometries
- the list of geometries
- Returns:
- bounding box of the given geometries