public interface Vertices extends Iterable<Vertex>
Mesh
.Modifier and Type | Method and Description |
---|---|
default long |
add(double x,
double y,
double z)
Adds a vertex.
|
default long |
add(double x,
double y,
double z,
double nx,
double ny,
double nz,
double u,
double v)
Adds a vertex.
|
default long |
addf(float x,
float y,
float z)
Adds a vertex.
|
long |
addf(float x,
float y,
float z,
float nx,
float ny,
float nz,
float u,
float v)
Adds a vertex.
|
default Iterator<Vertex> |
iterator() |
Mesh |
mesh()
The mesh to which the collection of vertices belongs.
|
default double |
nx(long vIndex)
X coordinate of vertex normal, as a double.
|
float |
nxf(long vIndex)
X coordinate of vertex normal, as a float.
|
default double |
ny(long vIndex)
Y coordinate of vertex normal, as a double.
|
float |
nyf(long vIndex)
Y coordinate of vertex normal, as a float.
|
default double |
nz(long vIndex)
Z coordinate of vertex normal, as a double.
|
float |
nzf(long vIndex)
Z coordinate of vertex normal, as a float.
|
default void |
set(long vIndex,
double x,
double y,
double z)
Overwrites the position of a vertex, sets normal and texture coordinates
to
0 |
default 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.
|
default void |
setf(long vIndex,
float x,
float y,
float z)
Overwrites the position of a vertex, sets normal and texture coordinates
to
0 |
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.
|
default 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.
|
default 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.
|
default 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.
|
default 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.
|
default 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.
|
default double |
x(long vIndex)
X position of a vertex, as a double.
|
float |
xf(long vIndex)
X position of a vertex, as a float.
|
default double |
y(long vIndex)
Y position of a vertex, as a double.
|
float |
yf(long vIndex)
Y position of a vertex, as a float.
|
default double |
z(long vIndex)
Z position of a vertex, as a double.
|
float |
zf(long vIndex)
Z position of a vertex, as a float.
|
forEach, spliterator
Mesh mesh()
long size()
float xf(long vIndex)
float yf(long vIndex)
float zf(long vIndex)
float nxf(long vIndex)
float nyf(long vIndex)
float nzf(long vIndex)
float uf(long vIndex)
float vf(long vIndex)
long addf(float x, float y, float z, float nx, float ny, float nz, float u, float v)
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.void setf(long vIndex, float x, float y, float z, float nx, float ny, float nz, float u, float v)
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.void setPositionf(long vIndex, float x, float y, float z)
vIndex
- Index of vertex to overwrite.x
- X position of the vertex.y
- Y position of the vertex.z
- Z position of the vertex.void setNormalf(long vIndex, float nx, float ny, float nz)
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.void setTexturef(long vIndex, float u, float v)
vIndex
- Index of vertex to overwrite.u
- U value of vertex texture coordinate.v
- V value of vertex texture coordinate.default long addf(float x, float y, float z)
x
- X position of the vertex.y
- Y position of the vertex.z
- Z position of the vertex.default void setf(long vIndex, float x, float y, float z)
0
vIndex
- Index of vertex to overwrite.x
- X position of the vertex.y
- Y position of the vertex.z
- Z position of the vertex.default double x(long vIndex)
default double y(long vIndex)
default double z(long vIndex)
default double nx(long vIndex)
default double ny(long vIndex)
default double nz(long vIndex)
default double u(long vIndex)
default double v(long vIndex)
default long add(double x, double y, double z)
x
- X coordinate of the vertex.y
- Y coordinate of the vertex.z
- Z coordinate of the vertex.default long add(double x, double y, double z, double nx, double ny, double nz, double u, double v)
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.default void set(long vIndex, double x, double y, double z)
0
vIndex
- Index of vertex to overwrite.x
- X position of the vertex.y
- Y position of the vertex.z
- Z position of the vertex.default void set(long vIndex, double x, double y, double z, double nx, double ny, double nz, double u, double v)
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.default void setPosition(long vIndex, double x, double y, double z)
vIndex
- Index of vertex to overwrite.x
- X position of the vertex.y
- Y position of the vertex.z
- Z position of the vertex.default void setNormal(long vIndex, double nx, double ny, double nz)
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.default void setTexture(long vIndex, double u, double v)
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.