com.jme3.scene.plugins.blender.textures
Class UVCoordinatesGenerator

java.lang.Object
  extended by com.jme3.scene.plugins.blender.textures.UVCoordinatesGenerator

public class UVCoordinatesGenerator
extends java.lang.Object

This class is used for UV coordinates generation.


Nested Class Summary
static class UVCoordinatesGenerator.UVCoordinatesType
           
 
Constructor Summary
UVCoordinatesGenerator()
           
 
Method Summary
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.
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.
static BoundingBox getBoundingBox(java.util.List<Geometry> geometries)
          This method returns the bounding box of the given geometries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UVCoordinatesGenerator

public UVCoordinatesGenerator()
Method Detail

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 for
texco - UV coordinates type
projection - projection type
geometries - 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 for
texco - UV coordinates type
coordinatesSwappingIndexes - coordinates swapping indexes
geometries - 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