Class Faces3D

java.lang.Object
jaba.Faces3D

public class Faces3D extends Object
Created by IntelliJ IDEA. User: Andrea Date: 15-giu-2005 Time: 17.55.46 To change this template use File | Settings | File Templates.
  • Constructor Details

    • Faces3D

      public Faces3D()
  • Method Details

    • Hull3D

      public Vector<newFace> Hull3D(Vector<Vertex> vertices) throws ConvexHullException
      Questo metodo restituisce una vettore con i 3 vertici della faccia e il "colore"
      Parameters:
      vertices -
      Returns:
      Throws:
      ConvexHullException
    • LExplode3D

      public Vector<Vertex> LExplode3D(Vector<Vertex> lin)
      The method "explodes" a vector of 3D vertices (vertex) by adding the projections on axes of all points.
      Parameters:
      lin - The passed vertex vector
      Returns:
      A vertex vector containing also the projections on the axes
    • LImplode3D

      public Vector LImplode3D(Vector lin, Vector ori)
      The method removes the projections from a 3D vertex vector (vertex) by comparing it with the vector of the original vertices
      Parameters:
      lin -
      ori -
      Returns:
    • SameVertex

      public boolean SameVertex(Vertex v1, Vertex v2)
      Check if the two vertices v1 and v2 are equal
      Parameters:
      v1 -
      v2 -
      Returns:
      true if they are equal
    • HasVertex

      public boolean HasVertex(Vertex v, Vector<Vertex> vertices)
      Check if the vertex v is present in the vertex vector vertices
      Parameters:
      v -
      vertices -
      Returns:
      true if v occurs in vertices
    • RemoveP

      public Vector<newFace> RemoveP(Vector<newFace> faces, Vector<Vertex> ori)
      Removes from the array of newFace faces faces that are not composed only of points contained in the ori vertex vector. Used to remove faces containing projections.
      Parameters:
      faces -
      ori -
      Returns:
      a vector with faces left
    • VertexRemoveZ

      public Vector<newPoint> VertexRemoveZ(Vector<Vertex> vertices)
      Transform a 2D vertex vector into a 2D point vector by discarding the z-coord
      Parameters:
      vertices -
      Returns:
    • VertexRemoveY

      public Vector<newPoint> VertexRemoveY(Vector<Vertex> vertices)
    • VertexRemoveX

      public Vector<newPoint> VertexRemoveX(Vector<Vertex> vertices)
    • ExistsComplanar

      public boolean ExistsComplanar(Vector<newFace> s)
      Check if there are any faces lying in the same plane.
      Parameters:
      s -
      Returns: