Constructor and Description |
---|
Triangles(IntBuffer indices,
FloatBuffer normals) |
Modifier and Type | Method and Description |
---|---|
long |
addf(long v0,
long v1,
long v2,
float nx,
float ny,
float nz)
Adds a triangle to the mesh's triangles list.
|
IntBuffer |
indices() |
Mesh |
mesh()
The mesh to which the collection of triangles belongs.
|
FloatBuffer |
normals() |
float |
nxf(long tIndex)
X coordinate of triangle's normal, as a float.
|
float |
nyf(long tIndex)
Y coordinate of triangle's normal, as a float.
|
float |
nzf(long tIndex)
Z coordinate of triangle's normal, as a float.
|
long |
size()
Number of triangles in the collection.
|
long |
vertex0(long tIndex)
Index of first vertex in a triangle.
|
long |
vertex1(long tIndex)
Index of second vertex in a triangle.
|
long |
vertex2(long tIndex)
Index of third vertex in a triangle.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, add, add, addf, addf, addf, iterator, nx, ny, nz
forEach, spliterator
public Triangles(IntBuffer indices, FloatBuffer normals)
public IntBuffer indices()
public FloatBuffer normals()
public Mesh mesh()
Triangles
public long size()
Triangles
public long vertex0(long tIndex)
Triangles
public long vertex1(long tIndex)
Triangles
public long vertex2(long tIndex)
Triangles
public float nxf(long tIndex)
Triangles
public float nyf(long tIndex)
Triangles
public float nzf(long tIndex)
Triangles
public long addf(long v0, long v1, long v2, float nx, float ny, float nz)
Triangles
addf
in interface Triangles
v0
- Index of triangle's first vertex.v1
- Index of triangle's second vertex.v2
- Index of triangle's third vertex.nx
- X coordinate of triangle's normal.ny
- Y coordinate of triangle's normal.nz
- Z coordinate of triangle's normal.Copyright © 2014–2022 ImageJ. All rights reserved.