| package org.eclipse.apogy.common.math.quickhull3d; |
| /******************************************************************************** |
| * Copyright (c) 2018 Agence spatiale canadienne / Canadian Space Agency |
| * Contributors: |
| * Pierre Allard (Pierre.Allard@canada.ca), |
| * Regent L'Archeveque (Regent.Larcheveque@canada.ca), |
| * Sebastien Gemme (Sebastien.Gemme@canada.ca), |
| * Canadian Space Agency (CSA) - Initial API and implementation |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 1.0 which is available at |
| * http://www.eclipse.org/legal/epl-v10.html. |
| * |
| * SPDX-License-Identifier: EPL-1.0 |
| ********************************************************************************/ |
| |
| import javax.vecmath.Vector3d; |
| |
| class Vertex { |
| /** |
| * Spatial point associated with this vertex. |
| */ |
| Vector3d pnt; |
| |
| /** |
| * Back index into an array. |
| */ |
| int index; |
| |
| /** |
| * List forward link. |
| */ |
| Vertex prev; |
| |
| /** |
| * List backward link. |
| */ |
| Vertex next; |
| |
| /** |
| * Current face that this vertex is outside of. |
| */ |
| Face face; |
| |
| /** |
| * Constructs a vertex and sets its coordinates to 0. |
| */ |
| public Vertex() { |
| this.pnt = new Vector3d(); |
| } |
| |
| /** |
| * Constructs a vertex with the specified coordinates and index. |
| */ |
| public Vertex(double x, double y, double z, int idx) { |
| this.pnt = new Vector3d(x, y, z); |
| this.index = idx; |
| } |
| |
| } |