| Constructor and Description |
|---|
Vertices() |
| Modifier and Type | Method and Description |
|---|---|
long |
addf(float x,
float y,
float z,
float nx,
float ny,
float nz,
float u,
float v)
Adds a vertex.
|
Mesh |
mesh()
The mesh to which the collection of vertices belongs.
|
float |
nxf(long vIndex)
X coordinate of vertex normal, as a float.
|
float |
nyf(long vIndex)
Y coordinate of vertex normal, as a float.
|
float |
nzf(long vIndex)
Z coordinate of vertex normal, as a float.
|
void |
setf(long vIndex,
float x,
float y,
float z,
float nx,
float ny,
float nz,
float u,
float v)
Overwrites a vertex's position, normal and texture coordinates.
|
void |
setNormalf(long vIndex,
float nx,
float ny,
float nz)
Overwrites a vertex's normal.
|
void |
setPositionf(long vIndex,
float x,
float y,
float z)
Overwrites a vertex's position.
|
void |
setTexturef(long vIndex,
float u,
float v)
Overwrites a vertex's texture coordinates.
|
long |
size()
Number of vertices in the collection.
|
float |
uf(long vIndex)
U value of vertex texture coordinate, as a float.
|
float |
vf(long vIndex)
V value of vertex texture coordinate, as a float.
|
float |
xf(long vIndex)
X position of a vertex, as a float.
|
float |
yf(long vIndex)
Y position of a vertex, as a float.
|
float |
zf(long vIndex)
Z position of a vertex, as a float.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, addf, iterator, nx, ny, nz, set, set, setf, setNormal, setPosition, setTexture, u, v, x, y, zforEach, spliteratorpublic Mesh mesh()
Verticespublic long size()
Verticespublic float xf(long vIndex)
Verticespublic float yf(long vIndex)
Verticespublic float zf(long vIndex)
Verticespublic float nxf(long vIndex)
Verticespublic float nyf(long vIndex)
Verticespublic float nzf(long vIndex)
Verticespublic float uf(long vIndex)
Verticespublic float vf(long vIndex)
Verticespublic long addf(float x,
float y,
float z,
float nx,
float ny,
float nz,
float u,
float v)
Verticesaddf in interface Verticesx - X position of the vertex.y - Y position of the vertex.z - Z position of the vertex.nx - X coordinate of the vertex's normal.ny - Y coordinate of the vertex's normal.nz - Z coordinate of the vertex's normal.u - U value of vertex texture coordinate.v - V value of vertex texture coordinate.public void setf(long vIndex,
float x,
float y,
float z,
float nx,
float ny,
float nz,
float u,
float v)
Verticessetf in interface VerticesvIndex - Index of vertex to overwrite.x - X position of the vertex.y - Y position of the vertex.z - Z position of the vertex.nx - X coordinate of the vertex's normal.ny - Y coordinate of the vertex's normal.nz - Z coordinate of the vertex's normal.u - U value of vertex texture coordinate.v - V value of vertex texture coordinate.public void setPositionf(long vIndex,
float x,
float y,
float z)
VerticessetPositionf in interface VerticesvIndex - Index of vertex to overwrite.x - X position of the vertex.y - Y position of the vertex.z - Z position of the vertex.public void setNormalf(long vIndex,
float nx,
float ny,
float nz)
VerticessetNormalf in interface VerticesvIndex - Index of vertex to overwrite.nx - X coordinate of the vertex's normal.ny - Y coordinate of the vertex's normal.nz - Z coordinate of the vertex's normal.public void setTexturef(long vIndex,
float u,
float v)
VerticessetTexturef in interface VerticesvIndex - Index of vertex to overwrite.u - U value of vertex texture coordinate.v - V value of vertex texture coordinate.Copyright © 2014–2022 ImageJ. All rights reserved.