public class Face
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
double |
brightness
The brightness value defines how bright the face should be rendered.
|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
normal
The normal (or direction) this face is facing.
|
java.util.Optional<Texture> |
texture
The texture that is to be rendered on this face.
|
java.util.List<Vertex> |
vertices
The vertices that make up this face.
|
| Constructor and Description |
|---|
Face() |
| Modifier and Type | Method and Description |
|---|---|
Face |
bindTexture(Texture texture)
Binds a specific texture to this artist.
|
protected Face |
clone() |
Face |
drawVertex(Vertex vert) |
double |
getBrightness() |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getCenter()
Gets the center of this face.
|
public final java.util.List<Vertex> vertices
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D normal
public java.util.Optional<Texture> texture
public double brightness
public Face bindTexture(Texture texture)
texture - Texture to bindpublic double getBrightness()
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getCenter()
protected Face clone()
clone in class java.lang.Object