public class Vertex extends Object
| Constructor and Description |
|---|
Vertex(Coords3d coords,
Color color)
Creates a new vertex with the given coordinate and color.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
format(OutputFormat outputFormat)
Formats this vertex with the given output format.
|
int |
hashCode() |
void |
toByteArray(ByteBuffer bb)
Writes the byte array representation of this vertex to the given buffer.
|
public Vertex(Coords3d coords, Color color)
coords - the coordinate of the vertexcolor - the color of the vertex - can be nullIllegalValueException - if the coords parameter is nullpublic void toByteArray(ByteBuffer bb)
bb - byte buffer the representation of this vertex will be written topublic String format(OutputFormat outputFormat)
outputFormat - the output format to be usedCopyright © 2014–2020, Printing in 3D. All rights reserved.