public static interface TriMeshView.TriPainter
Modifier and Type | Method and Description |
---|---|
void |
paint(java.awt.Graphics2D g,
TriMesh.Tri tri,
TriMesh.Node na,
int xa,
int ya,
TriMesh.Node nb,
int xb,
int yb,
TriMesh.Node nc,
int xc,
int yc)
Paints the specified triangle.
|
void paint(java.awt.Graphics2D g, TriMesh.Tri tri, TriMesh.Node na, int xa, int ya, TriMesh.Node nb, int xb, int yb, TriMesh.Node nc, int xc, int yc)
g
- the graphics context.tri
- the triangle.na
- node A of the triangle.xa
- x pixel coordinate of node A.ya
- y pixel coordinate of node A.nb
- node B of the triangle.xb
- x pixel coordinate of node B.yb
- y pixel coordinate of node B.nc
- node C of the triangle.xc
- x pixel coordinate of node C.yc
- y pixel coordinate of node C.