public class VertexMap extends Object
Helper class for the polygon file export.
It holds a collection of vertexes and make a fixed projection between a vertex and its index.
Constructor and Description |
---|
VertexMap(Collection<Vertex> vertexes)
Constructs a new object with the given collection of vertexes.
|
Modifier and Type | Method and Description |
---|---|
int |
findIndex(Vertex vertex)
Finds the index of the given vertex.
|
List<Vertex> |
getVertexList()
Gives the list of vertexes back which is used with the index calculation.
|
public VertexMap(Collection<Vertex> vertexes)
vertexes
- the collection of vertexes to be usedpublic int findIndex(Vertex vertex)
vertex
- the vertex to be foundCopyright © 2014–2020, Printing in 3D. All rights reserved.