public class Vertex extends Object implements Serializable
Triangle
"owning" the vertex.Constructor and Description |
---|
Vertex(int id,
Vector3D position)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addNeighbors(Triangle neighbor)
Add a triangle neighbor (package method only to be used at initialization of
FacetBodyShape ). |
int |
getID()
Returns the vertex identifier.
|
List<Triangle> |
getNeighbors()
Returns the triangle neighbors (i.e.
|
Vector3D |
getPosition()
Returns the vertex 3D position.
|
public Vertex(int id, Vector3D position)
id
- identifierposition
- 3D positionpublic int getID()
public Vector3D getPosition()
public List<Triangle> getNeighbors()
protected void addNeighbors(Triangle neighbor)
FacetBodyShape
).
Warning: no check is performed in order to verify is the provided triangle is really a neighbor.
neighbor
- the triangle neighbor to setCopyright © 2023 CNES. All rights reserved.