public interface R2MeshTangentsBuilderType
Modifier and Type | Method and Description |
---|---|
long |
addBitangent(com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceObjectType> p)
Add a bitangent vector.
|
long |
addNormal(com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceObjectType> n)
Add a normal vector.
|
long |
addPosition(com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceObjectType> p)
Add a position vector.
|
long |
addTangent(com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceObjectType> p)
Add a tangent vector.
|
long |
addTriangle(long v0,
long v1,
long v2)
Add a triangle.
|
long |
addUV(com.io7m.jtensors.core.parameterized.vectors.PVector2D<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.core.parameterized.vectors.PVector3D<R2SpaceObjectType> p)
p
- The positionlong addNormal(com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceObjectType> n)
n
- The normallong addUV(com.io7m.jtensors.core.parameterized.vectors.PVector2D<R2SpaceTextureType> u)
u
- The UVlong addTangent(com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceObjectType> p)
p
- The positionlong addBitangent(com.io7m.jtensors.core.parameterized.vectors.PVector3D<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(PVector3D)
,
addNormal(PVector3D)
,
addUV(PVector2D)
,
addTangent(PVector4D)
,
addBitangent(PVector3D)
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 © 2017 <code@io7m.com> http://io7m.com