VertexElementUV

Inheritance: java.lang.Object, com.aspose.threed.VertexElement, com.aspose.threed.VertexElementVector4

public class VertexElementUV extends VertexElementVector4

Defines the UV coordinates for specified components. A geometry can have multiple VertexElementUV elements, and each one have different TextureMappings.

Constructors

ConstructorDescription
VertexElementUV()Initializes a new instance of the VertexElementUV class.
VertexElementUV(TextureMapping textureMapping)Initializes a new instance of the VertexElementUV class.

Methods

MethodDescription
addData(Iterable data)Add a set of Vector2 to VertexElementUV.Data.
addData2(Iterable data)Add a set of Vector3 to VertexElementUV.Data.
clear()Removes all elements from the direct and the index arrays.
clone(boolean withData)Deep clone the vertex element
clone(boolean withDirect, boolean withIndice)
copyTo(VertexElementVector4 target)Copies data to specified element
equals(Object arg0)
getClass()
getData()Gets the vertex data
getIndices()Gets the indices data
getMappingMode()Gets how the element is mapped.
getName()Gets the name.
getReferenceMode()Gets how the element is referenced.
getVertexElementType()Gets the type of the VertexElement
hashCode()
notify()
notifyAll()
setData(Vector4[] data)Load data
setIndices(int[] data)Load indices
setMappingMode(MappingMode value)Sets how the element is mapped.
setName(String value)Sets the name.
setReferenceMode(ReferenceMode value)Sets how the element is referenced.
toString()String representation of vertex element.
wait()
wait(long arg0)
wait(long arg0, int arg1)

VertexElementUV()

public VertexElementUV()

Initializes a new instance of the VertexElementUV class. The default texture mapping type is TextureMapping.DIFFUSE

VertexElementUV(TextureMapping textureMapping)

public VertexElementUV(TextureMapping textureMapping)

Initializes a new instance of the VertexElementUV class.

Parameters:

ParameterTypeDescription
textureMappingTextureMappingThe texture mapping type.

addData(Iterable data)

public void addData(Iterable<Vector2> data)

Add a set of Vector2 to VertexElementUV.Data. This is a short-cut, this method will convert the Vector2 to Vector4 with z to 0 and w to 0.

Parameters:

ParameterTypeDescription
datajava.lang.Iterable<com.aspose.threed.Vector2>

addData2(Iterable data)

public void addData2(Iterable<Vector3> data)

Add a set of Vector3 to VertexElementUV.Data. This is a short-cut, this method will convert the Vector3 to Vector4 with w to 0.

Parameters:

ParameterTypeDescription
datajava.lang.Iterable<com.aspose.threed.Vector3>

clear()

public void clear()

Removes all elements from the direct and the index arrays.

clone(boolean withData)

public VertexElement clone(boolean withData)

Deep clone the vertex element

Parameters:

ParameterTypeDescription
withDatabooleanClone the vertex with direct and index array

Returns: VertexElement

clone(boolean withDirect, boolean withIndice)

public VertexElement clone(boolean withDirect, boolean withIndice)

Parameters:

ParameterTypeDescription
withDirectboolean
withIndiceboolean

Returns: VertexElement

copyTo(VertexElementVector4 target)

public void copyTo(VertexElementVector4 target)

Copies data to specified element

Parameters:

ParameterTypeDescription
targetVertexElementVector4Target.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getData()

public List<Vector4> getData()

Gets the vertex data

Returns: java.util.List<com.aspose.threed.Vector4>

getIndices()

public List<Integer> getIndices()

Gets the indices data

Returns: java.util.List<java.lang.Integer>

getMappingMode()

public MappingMode getMappingMode()

Gets how the element is mapped.

Returns: MappingMode

getName()

public String getName()

Gets the name.

Returns: java.lang.String

getReferenceMode()

public ReferenceMode getReferenceMode()

Gets how the element is referenced.

Returns: ReferenceMode

getVertexElementType()

public VertexElementType getVertexElementType()

Gets the type of the VertexElement

Returns: VertexElementType

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setData(Vector4[] data)

public void setData(Vector4[] data)

Load data

Parameters:

ParameterTypeDescription
dataVector4[]

setIndices(int[] data)

public void setIndices(int[] data)

Load indices

Parameters:

ParameterTypeDescription
dataint[]

setMappingMode(MappingMode value)

public void setMappingMode(MappingMode value)

Sets how the element is mapped.

Parameters:

ParameterTypeDescription
valueMappingModeNew value

setName(String value)

public void setName(String value)

Sets the name.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setReferenceMode(ReferenceMode value)

public void setReferenceMode(ReferenceMode value)

Sets how the element is referenced.

Parameters:

ParameterTypeDescription
valueReferenceModeNew value

toString()

public String toString()

String representation of vertex element.

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int