Package net.imglib2.mesh.impl.naive
Class NaiveDoubleMesh.Vertices
- java.lang.Object
-
- net.imglib2.mesh.impl.naive.NaiveDoubleMesh.Vertices
-
-
Constructor Summary
Constructors Constructor Description Vertices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longadd(double x, double y, double z, double nx, double ny, double nz, double u, double v)Adds a vertex.longaddf(float x, float y, float z, float nx, float ny, float nz, float u, float v)Adds a vertex.Meshmesh()The mesh to which the collection of vertices belongs.doublenx(long vIndex)X coordinate of vertex normal, as a double.floatnxf(long vIndex)X coordinate of vertex normal, as a float.doubleny(long vIndex)Y coordinate of vertex normal, as a double.floatnyf(long vIndex)Y coordinate of vertex normal, as a float.doublenz(long vIndex)Z coordinate of vertex normal, as a double.floatnzf(long vIndex)Z coordinate of vertex normal, as a float.voidset(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.voidsetf(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.voidsetNormal(long vIndex, double nx, double ny, double nz)Overwrites a vertex's normal.voidsetNormalf(long vIndex, float nx, float ny, float nz)Overwrites a vertex's normal.voidsetPosition(long vIndex, double x, double y, double z)Overwrites a vertex's position.voidsetPositionf(long vIndex, float x, float y, float z)Overwrites a vertex's position.voidsetTexture(long vIndex, double u, double v)Overwrites a vertex's texture coordinates.voidsetTexturef(long vIndex, float u, float v)Overwrites a vertex's texture coordinates.longsizel()Number of vertices in the collection as alongvalue.doubleu(long vIndex)U value of vertex texture coordinate, as a double.floatuf(long vIndex)U value of vertex texture coordinate, as a float.doublev(long vIndex)V value of vertex texture coordinate, as a double.floatvf(long vIndex)V value of vertex texture coordinate, as a float.doublex(long vIndex)X position of a vertex, as a double.floatxf(long vIndex)X position of a vertex, as a float.doubley(long vIndex)Y position of a vertex, as a double.floatyf(long vIndex)Y position of a vertex, as a float.doublez(long vIndex)Z position of a vertex, as a double.floatzf(long vIndex)Z position of a vertex, as a float.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
mesh
public Mesh mesh()
Description copied from interface:VerticesThe mesh to which the collection of vertices belongs.
-
sizel
public long sizel()
Description copied from interface:VerticesNumber of vertices in the collection as alongvalue.
-
x
public double x(long vIndex)
Description copied from interface:VerticesX position of a vertex, as a double.
-
y
public double y(long vIndex)
Description copied from interface:VerticesY position of a vertex, as a double.
-
z
public double z(long vIndex)
Description copied from interface:VerticesZ position of a vertex, as a double.
-
nx
public double nx(long vIndex)
Description copied from interface:VerticesX coordinate of vertex normal, as a double.
-
ny
public double ny(long vIndex)
Description copied from interface:VerticesY coordinate of vertex normal, as a double.
-
nz
public double nz(long vIndex)
Description copied from interface:VerticesZ coordinate of vertex normal, as a double.
-
u
public double u(long vIndex)
Description copied from interface:VerticesU value of vertex texture coordinate, as a double.
-
v
public double v(long vIndex)
Description copied from interface:VerticesV value of vertex texture coordinate, as a double.
-
add
public long add(double x, double y, double z, double nx, double ny, double nz, double u, double v)Description copied from interface:VerticesAdds a vertex.- Specified by:
addin interfaceVertices- Parameters:
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.- Returns:
- Index of newly added vertex.
-
set
public void set(long vIndex, double x, double y, double z, double nx, double ny, double nz, double u, double v)Description copied from interface:VerticesOverwrites a vertex's position, normal and texture coordinates.- Specified by:
setin interfaceVertices- Parameters:
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.
-
setPosition
public void setPosition(long vIndex, double x, double y, double z)Description copied from interface:VerticesOverwrites a vertex's position.- Specified by:
setPositionin interfaceVertices- Parameters:
vIndex- Index of vertex to overwrite.x- X position of the vertex.y- Y position of the vertex.z- Z position of the vertex.
-
setNormal
public void setNormal(long vIndex, double nx, double ny, double nz)Description copied from interface:VerticesOverwrites a vertex's normal.
-
setTexture
public void setTexture(long vIndex, double u, double v)Description copied from interface:VerticesOverwrites a vertex's texture coordinates.- Specified by:
setTexturein interfaceVertices- Parameters:
vIndex- Index of vertex to overwrite.u- U value of vertex texture coordinate.v- V value of vertex texture coordinate.
-
xf
public float xf(long vIndex)
Description copied from interface:VerticesX position of a vertex, as a float.
-
yf
public float yf(long vIndex)
Description copied from interface:VerticesY position of a vertex, as a float.
-
zf
public float zf(long vIndex)
Description copied from interface:VerticesZ position of a vertex, as a float.
-
nxf
public float nxf(long vIndex)
Description copied from interface:VerticesX coordinate of vertex normal, as a float.
-
nyf
public float nyf(long vIndex)
Description copied from interface:VerticesY coordinate of vertex normal, as a float.
-
nzf
public float nzf(long vIndex)
Description copied from interface:VerticesZ coordinate of vertex normal, as a float.
-
uf
public float uf(long vIndex)
Description copied from interface:VerticesU value of vertex texture coordinate, as a float.
-
vf
public float vf(long vIndex)
Description copied from interface:VerticesV value of vertex texture coordinate, as a float.
-
addf
public long addf(float x, float y, float z, float nx, float ny, float nz, float u, float v)Description copied from interface:VerticesAdds a vertex.- Specified by:
addfin interfaceVertices- Parameters:
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.- Returns:
- Index of newly added vertex.
-
setf
public void setf(long vIndex, float x, float y, float z, float nx, float ny, float nz, float u, float v)Description copied from interface:VerticesOverwrites a vertex's position, normal and texture coordinates.- Specified by:
setfin interfaceVertices- Parameters:
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.
-
setPositionf
public void setPositionf(long vIndex, float x, float y, float z)Description copied from interface:VerticesOverwrites a vertex's position.- Specified by:
setPositionfin interfaceVertices- Parameters:
vIndex- Index of vertex to overwrite.x- X position of the vertex.y- Y position of the vertex.z- Z position of the vertex.
-
setNormalf
public void setNormalf(long vIndex, float nx, float ny, float nz)Description copied from interface:VerticesOverwrites a vertex's normal.- Specified by:
setNormalfin interfaceVertices- Parameters:
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.
-
setTexturef
public void setTexturef(long vIndex, float u, float v)Description copied from interface:VerticesOverwrites a vertex's texture coordinates.- Specified by:
setTexturefin interfaceVertices- Parameters:
vIndex- Index of vertex to overwrite.u- U value of vertex texture coordinate.v- V value of vertex texture coordinate.
-
-