public interface Triangles extends Iterable<Triangle>
Mesh
.Modifier and Type | Method and Description |
---|---|
default long |
add(double v0x,
double v0y,
double v0z,
double v1x,
double v1y,
double v1z,
double v2x,
double v2y,
double v2z)
Adds a triangle to the mesh's triangles list.
|
default long |
add(double v0x,
double v0y,
double v0z,
double v1x,
double v1y,
double v1z,
double v2x,
double v2y,
double v2z,
double nx,
double ny,
double nz)
Adds a triangle to the mesh's triangles list.
|
default long |
add(long v0,
long v1,
long v2)
Adds a triangle to the mesh's triangles list.
|
default long |
add(long v0,
long v1,
long v2,
double nx,
double ny,
double nz)
Adds a triangle to the mesh's triangles list.
|
default long |
addf(float v0x,
float v0y,
float v0z,
float v1x,
float v1y,
float v1z,
float v2x,
float v2y,
float v2z)
Adds a triangle to the mesh's triangles list.
|
default long |
addf(float v0x,
float v0y,
float v0z,
float v1x,
float v1y,
float v1z,
float v2x,
float v2y,
float v2z,
float nx,
float ny,
float nz)
Adds a triangle to the mesh's triangles list.
|
default long |
addf(long v0,
long v1,
long v2)
Adds a triangle to the mesh's triangles list.
|
long |
addf(long v0,
long v1,
long v2,
float nx,
float ny,
float nz)
Adds a triangle to the mesh's triangles list.
|
default Iterator<Triangle> |
iterator() |
Mesh |
mesh()
The mesh to which the collection of triangles belongs.
|
default double |
nx(long tIndex)
X coordinate of triangle's normal, as a double.
|
float |
nxf(long tIndex)
X coordinate of triangle's normal, as a float.
|
default double |
ny(long tIndex)
Y coordinate of triangle's normal, as a double.
|
float |
nyf(long tIndex)
Y coordinate of triangle's normal, as a float.
|
default double |
nz(long tIndex)
Z coordinate of triangle's normal, as a double.
|
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.
|
forEach, spliterator
Mesh mesh()
long size()
long vertex0(long tIndex)
long vertex1(long tIndex)
long vertex2(long tIndex)
float nxf(long tIndex)
float nyf(long tIndex)
float nzf(long tIndex)
long addf(long v0, long v1, long v2, float nx, float ny, float nz)
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.default long addf(long v0, long v1, long v2)
Normal is computed with counterclockwise (i.e., right-hand) orientation.
v0
- Index of triangle's first vertex.v1
- Index of triangle's second vertex.v2
- Index of triangle's third vertex.default long addf(float v0x, float v0y, float v0z, float v1x, float v1y, float v1z, float v2x, float v2y, float v2z, float nx, float ny, float nz)
This is a convenience method that first creates the vertices using
Vertices.addf(float, float, float)
, then calls
addf(long, long, long, float, float, float)
.
v0x
- X coordinate of triangle's first vertex.v0y
- Y coordinate of triangle's first vertex.v0z
- Z coordinate of triangle's first vertex.v1x
- X coordinate of triangle's second vertex.v1y
- Y coordinate of triangle's second vertex.v1z
- Z coordinate of triangle's second vertex.v2x
- X coordinate of triangle's third vertex.v2y
- Y coordinate of triangle's third vertex.v2z
- Z coordinate 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.default long addf(float v0x, float v0y, float v0z, float v1x, float v1y, float v1z, float v2x, float v2y, float v2z)
This is a convenience method that first creates the vertices using
Vertices.addf(float, float, float)
, then calls
addf(long, long, long)
.
v0x
- X coordinate of triangle's first vertex.v0y
- Y coordinate of triangle's first vertex.v0z
- Z coordinate of triangle's first vertex.v1x
- X coordinate of triangle's second vertex.v1y
- Y coordinate of triangle's second vertex.v1z
- Z coordinate of triangle's second vertex.v2x
- X coordinate of triangle's third vertex.v2y
- Y coordinate of triangle's third vertex.v2z
- Z coordinate of triangle's third vertex.default double nx(long tIndex)
default double ny(long tIndex)
default double nz(long tIndex)
default long add(long v0, long v1, long v2, double nx, double ny, double nz)
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.default long add(long v0, long v1, long v2)
Normal is computed with counterclockwise (i.e., right-hand) orientation.
v0
- Index of triangle's first vertex.v1
- Index of triangle's second vertex.v2
- Index of triangle's third vertex.default long add(double v0x, double v0y, double v0z, double v1x, double v1y, double v1z, double v2x, double v2y, double v2z, double nx, double ny, double nz)
This is a convenience method that first creates the vertices using
Vertices.add(double, double, double)
, then calls
add(long, long, long, double, double, double)
.
v0x
- X coordinate of triangle's first vertex.v0y
- Y coordinate of triangle's first vertex.v0z
- Z coordinate of triangle's first vertex.v1x
- X coordinate of triangle's second vertex.v1y
- Y coordinate of triangle's second vertex.v1z
- Z coordinate of triangle's second vertex.v2x
- X coordinate of triangle's third vertex.v2y
- Y coordinate of triangle's third vertex.v2z
- Z coordinate 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.default long add(double v0x, double v0y, double v0z, double v1x, double v1y, double v1z, double v2x, double v2y, double v2z)
This is a convenience method that first creates the vertices using
Vertices.add(double, double, double)
, then calls
add(long, long, long)
.
v0x
- X coordinate of triangle's first vertex.v0y
- Y coordinate of triangle's first vertex.v0z
- Z coordinate of triangle's first vertex.v1x
- X coordinate of triangle's second vertex.v1y
- Y coordinate of triangle's second vertex.v1z
- Z coordinate of triangle's second vertex.v2x
- X coordinate of triangle's third vertex.v2y
- Y coordinate of triangle's third vertex.v2z
- Z coordinate of triangle's third vertex.Copyright © 2014–2022 ImageJ. All rights reserved.