artofillusion.texture
Class Mapping2D
java.lang.Object
artofillusion.texture.TextureMapping
artofillusion.texture.Mapping2D
- Direct Known Subclasses:
- NonlinearMapping2D, ProjectionMapping, UVMapping
public abstract class Mapping2D
- extends TextureMapping
Mapping2D is an abstract class describing a linear mapping between 2D texture coordinates
and 3D space.
Methods inherited from class artofillusion.texture.TextureMapping |
appliesTo, appliesToFace, copy, duplicate, duplicate, getDisplacement, getEditingPanel, getName, getParameters, getTextureSpec, getTransparency, mapTriangle, setAppliesTo, setParameters, writeToFile |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mapping2D
public Mapping2D(Object3D theObject,
Texture theTexture)
getTexture
public Texture getTexture()
- Description copied from class:
TextureMapping
- Get the Texture associated with this TextureMapping.
- Specified by:
getTexture
in class TextureMapping
getObject
public Object3D getObject()
- Description copied from class:
TextureMapping
- Get the object this mapping is applied to.
- Specified by:
getObject
in class TextureMapping
legalMapping
public static boolean legalMapping(Object3D obj,
Texture tex)
findTextureCoordinates
public abstract Vec2[] findTextureCoordinates(Mesh mesh)
- Given a Mesh to which this mapping has been applied, return the texture coordinates at
each vertex.
Copyright © 1999-2011 by Peter Eastman.