Package net.imglib2.mesh.impl.naive
Class NaiveFloatMesh.Vertices
- java.lang.Object
-
- net.imglib2.mesh.impl.naive.NaiveFloatMesh.Vertices
-
-
Constructor Summary
Constructors Constructor Description Vertices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.floatnxf(long vIndex)X coordinate of vertex normal, as a float.floatnyf(long vIndex)Y coordinate of vertex normal, as a float.floatnzf(long vIndex)Z coordinate of vertex normal, as a float.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.voidsetNormalf(long vIndex, float nx, float ny, float nz)Overwrites a vertex's normal.voidsetPositionf(long vIndex, float x, float y, float z)Overwrites a vertex's position.voidsetTexturef(long vIndex, float u, float v)Overwrites a vertex's texture coordinates.longsizel()Number of vertices in the collection as alongvalue.floatuf(long vIndex)U value of vertex texture coordinate, as a float.floatvf(long vIndex)V value of vertex texture coordinate, as a float.floatxf(long vIndex)X position of a vertex, as a float.floatyf(long vIndex)Y position of a vertex, as a float.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.
-
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.
-
-