public interface R2MeshBasicBuilderType
Modifier and Type | Method and Description |
---|---|
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 |
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 u)
Add a vertex.
|
R2MeshBasicType |
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 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
p
R2MeshExceptionMissingNormal
- Iff no normal vector exists for
n
R2MeshExceptionMissingUV
- Iff no UV vector exists for u
addPosition(PVector3D)
,
addNormal(PVector3D)
,
addUV(PVector2D)
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