Constructor and Description |
---|
Vertices() |
Modifier and Type | Method and Description |
---|---|
long |
add(double x,
double y,
double z,
double nx,
double ny,
double nz,
double u,
double v)
Adds a vertex.
|
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.
|
double |
nx(long vIndex)
X coordinate of vertex normal, as a double.
|
float |
nxf(long vIndex)
X coordinate of vertex normal, as a float.
|
double |
ny(long vIndex)
Y coordinate of vertex normal, as a double.
|
float |
nyf(long vIndex)
Y coordinate of vertex normal, as a float.
|
double |
nz(long vIndex)
Z coordinate of vertex normal, as a double.
|
float |
nzf(long vIndex)
Z coordinate of vertex normal, as a float.
|
void |
set(long vIndex,
double x,
double y,
double z,
double nx,
double ny,
double nz,
double u,
double v)
Overwrites a vertex's position, normal and texture coordinates.
|
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 |
setNormal(long vIndex,
double nx,
double ny,
double nz)
Overwrites a vertex's normal.
|
void |
setNormalf(long vIndex,
float nx,
float ny,
float nz)
Overwrites a vertex's normal.
|
void |
setPosition(long vIndex,
double x,
double y,
double z)
Overwrites a vertex's position.
|
void |
setPositionf(long vIndex,
float x,
float y,
float z)
Overwrites a vertex's position.
|
void |
setTexture(long vIndex,
double u,
double v)
Overwrites a vertex's texture coordinates.
|
void |
setTexturef(long vIndex,
float u,
float v)
Overwrites a vertex's texture coordinates.
|
long |
size()
Number of vertices in the collection.
|
double |
u(long vIndex)
U value of vertex texture coordinate, as a double.
|
float |
uf(long vIndex)
U value of vertex texture coordinate, as a float.
|
double |
v(long vIndex)
V value of vertex texture coordinate, as a double.
|
float |
vf(long vIndex)
V value of vertex texture coordinate, as a float.
|
double |
x(long vIndex)
X position of a vertex, as a double.
|
float |
xf(long vIndex)
X position of a vertex, as a float.
|
double |
y(long vIndex)
Y position of a vertex, as a double.
|
float |
yf(long vIndex)
Y position of a vertex, as a float.
|
double |
z(long vIndex)
Z position of a vertex, as a double.
|
float |
zf(long vIndex)
Z position of a vertex, as a float.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Mesh mesh()
Vertices
public long size()
Vertices
public double x(long vIndex)
Vertices
public double y(long vIndex)
Vertices
public double z(long vIndex)
Vertices
public double nx(long vIndex)
Vertices
public double ny(long vIndex)
Vertices
public double nz(long vIndex)
Vertices
public double u(long vIndex)
Vertices
public double v(long vIndex)
Vertices
public long add(double x, double y, double z, double nx, double ny, double nz, double u, double v)
Vertices
add
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 set(long vIndex, double x, double y, double z, double nx, double ny, double nz, double u, double v)
Vertices
set
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 setPosition(long vIndex, double x, double y, double z)
Vertices
setPosition
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 setNormal(long vIndex, double nx, double ny, double nz)
Vertices
public void setTexture(long vIndex, double u, double v)
Vertices
setTexture
in interface Vertices
vIndex
- Index of vertex to overwrite.u
- U value of vertex texture coordinate.v
- V value of vertex texture coordinate.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.