Package com.aspose.threed
Class VertexElementUV
- java.lang.Object
-
- com.aspose.threed.VertexElement
-
- com.aspose.threed.VertexElementVector4
-
- com.aspose.threed.VertexElementUV
-
- All Implemented Interfaces:
IIndexedVertexElement
public class VertexElementUV extends VertexElementVector4
Defines the UV coordinates for specified components. A geometry can have multipleVertexElementUV
elements, and each one have differentTextureMapping
s.
-
-
Constructor Summary
Constructors Constructor Description VertexElementUV()
Initializes a new instance of theVertexElementUV
class.VertexElementUV(TextureMapping textureMapping)
Initializes a new instance of theVertexElementUV
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addData(java.lang.Iterable<Vector2> data)
Add a set ofVector2
to VertexElementUV.Data.void
addData2(java.lang.Iterable<Vector3> data)
Add a set ofVector3
to VertexElementUV.Data.VertexElement
clone(boolean withDirect, boolean withIndice)
-
Methods inherited from class com.aspose.threed.VertexElementVector4
clear, copyTo, getData, setData
-
Methods inherited from class com.aspose.threed.VertexElement
clone, getIndices, getMappingMode, getName, getReferenceMode, getVertexElementType, setIndices, setMappingMode, setName, setReferenceMode, toString
-
-
-
-
Constructor Detail
-
VertexElementUV
public VertexElementUV()
Initializes a new instance of theVertexElementUV
class. The default texture mapping type isTextureMapping.DIFFUSE
-
VertexElementUV
public VertexElementUV(TextureMapping textureMapping)
Initializes a new instance of theVertexElementUV
class.- Parameters:
textureMapping
- The texture mapping type.
-
-
Method Detail
-
addData
public void addData(java.lang.Iterable<Vector2> data)
Add a set ofVector2
to VertexElementUV.Data. This is a short-cut, this method will convert theVector2
toVector4
with z to 0 and w to 0.- Parameters:
data
-
-
clone
public VertexElement clone(boolean withDirect, boolean withIndice)
-
-