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, wait
add, add, addf, iterator, nx, ny, nz, set, set, setf, setNormal, setPosition, setTexture, u, v, x, y, z
forEach, spliterator
public Mesh mesh()
Vertices
public long size()
Vertices
public float xf(long vIndex)
Vertices
public float yf(long vIndex)
Vertices
public float zf(long vIndex)
Vertices
public float nxf(long vIndex)
Vertices
public float nyf(long vIndex)
Vertices
public float nzf(long vIndex)
Vertices
public float uf(long vIndex)
Vertices
public float vf(long vIndex)
Vertices
public long addf(float x, float y, float z, float nx, float ny, float nz, float u, float v)
Vertices
addf
in interface Vertices
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 setf(long vIndex, float x, float y, float z, float nx, float ny, float nz, float u, float v)
Vertices
setf
in interface Vertices
vIndex
- 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)
Vertices
setPositionf
in interface Vertices
vIndex
- 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)
Vertices
setNormalf
in interface Vertices
vIndex
- 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)
Vertices
setTexturef
in interface Vertices
vIndex
- 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.