public interface R2MeshTangentsBuilderType
| Modifier and Type | Method and Description |
|---|---|
long |
addBitangent(com.io7m.jtensors.parameterized.PVectorReadable3DType<R2SpaceObjectType> p)
Add a bitangent vector.
|
long |
addNormal(com.io7m.jtensors.parameterized.PVectorReadable3DType<R2SpaceObjectType> n)
Add a normal vector.
|
long |
addPosition(com.io7m.jtensors.parameterized.PVectorReadable3DType<R2SpaceObjectType> p)
Add a position vector.
|
long |
addTangent(com.io7m.jtensors.parameterized.PVectorReadable4DType<R2SpaceObjectType> p)
Add a tangent vector.
|
long |
addTriangle(long v0,
long v1,
long v2)
Add a triangle.
|
long |
addUV(com.io7m.jtensors.parameterized.PVectorReadable2DType<R2SpaceTextureType> u)
Add a UV vector.
|
long |
addVertex(long p,
long n,
long t,
long b,
long u)
Add a vertex.
|
R2MeshTangentsType |
build() |
void |
reset()
Clear the contents of the builder
|
void reset()
long addPosition(com.io7m.jtensors.parameterized.PVectorReadable3DType<R2SpaceObjectType> p)
p - The positionlong addNormal(com.io7m.jtensors.parameterized.PVectorReadable3DType<R2SpaceObjectType> n)
n - The normallong addUV(com.io7m.jtensors.parameterized.PVectorReadable2DType<R2SpaceTextureType> u)
u - The UVlong addTangent(com.io7m.jtensors.parameterized.PVectorReadable4DType<R2SpaceObjectType> p)
p - The positionlong addBitangent(com.io7m.jtensors.parameterized.PVectorReadable3DType<R2SpaceObjectType> p)
p - The positionlong addVertex(long p,
long n,
long t,
long b,
long u)
throws NoSuchElementException
p - The index of the position vectorn - The index of the normal vectort - The index of the tangent vectorb - The index of the bitangent vectoru - The index of the UV vectorNoSuchElementException - Iff any of the given indices do not existaddPosition(PVectorReadable3DType),
addNormal(PVectorReadable3DType),
addUV(PVectorReadable2DType),
addTangent(PVectorReadable4DType),
addBitangent(PVectorReadable3DType)long addTriangle(long v0,
long v1,
long v2)
throws NoSuchElementException
v0 - The index of the first vertexv1 - The index of the second vertexv2 - The index of the third vertexNoSuchElementException - Iff any of the given vertices do not existaddVertex(long, long, long, long, long)R2MeshTangentsType build()
Copyright © 2016 <code@io7m.com> http://io7m.com