public class UVCoordinatesGenerator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UVCoordinatesGenerator.UVCoordinatesType |
Constructor and Description |
---|
UVCoordinatesGenerator() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Vector2f> |
generateUVCoordinatesFor2DTexture(Mesh mesh,
UVCoordinatesGenerator.UVCoordinatesType texco,
com.jme3.scene.plugins.blender.textures.UVProjectionGenerator.UVProjectionType projection,
Geometry geometries)
Generates a UV coordinates for 2D texture.
|
static java.util.List<Vector3f> |
generateUVCoordinatesFor3DTexture(Mesh mesh,
UVCoordinatesGenerator.UVCoordinatesType texco,
int[] coordinatesSwappingIndexes,
Geometry... geometries)
Generates a UV coordinates for 3D texture.
|
static BoundingBox |
getBoundingBox(Geometry... geometries)
This method returns the bounding box of the given geometries.
|
static boolean |
isTextureCoordinateTypeSupported(UVCoordinatesGenerator.UVCoordinatesType texco)
This method should be used to determine if the texture will ever be
computed.
|
public static java.util.List<Vector2f> generateUVCoordinatesFor2DTexture(Mesh mesh, UVCoordinatesGenerator.UVCoordinatesType texco, com.jme3.scene.plugins.blender.textures.UVProjectionGenerator.UVProjectionType projection, Geometry geometries)
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)public static java.util.List<Vector3f> generateUVCoordinatesFor3DTexture(Mesh mesh, UVCoordinatesGenerator.UVCoordinatesType texco, int[] coordinatesSwappingIndexes, Geometry... geometries)
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)public static boolean isTextureCoordinateTypeSupported(UVCoordinatesGenerator.UVCoordinatesType texco)
texco
- the texture coordinates typepublic static BoundingBox getBoundingBox(Geometry... geometries)
geometries
- the list of geometries