public interface R2MeshBasicBuilderType
| Modifier and Type | Method and Description |
|---|---|
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 |
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 u)
Add a vertex.
|
R2MeshBasicType |
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 addVertex(long p,
long n,
long u)
throws R2MeshExceptionMissingPosition,
R2MeshExceptionMissingNormal,
R2MeshExceptionMissingUV
p - The index of the position vectorn - The index of the normal vectoru - The index of the UV vectorR2MeshExceptionMissingPosition - Iff no position vector exists for
pR2MeshExceptionMissingNormal - Iff no normal vector exists for
nR2MeshExceptionMissingUV - Iff no UV vector exists for uaddPosition(PVectorReadable3DType),
addNormal(PVectorReadable3DType),
addUV(PVectorReadable2DType)long addTriangle(long v0,
long v1,
long v2)
throws R2MeshExceptionMissingVertex
v0 - The index of the first vertexv1 - The index of the second vertexv2 - The index of the third vertexR2MeshExceptionMissingVertex - Iff any of the given vertices do not
existaddVertex(long, long, long)R2MeshBasicType build()
Copyright © 2017 <code@io7m.com> http://io7m.com