Class HullEdge
java.lang.Object
jaba.convexHull3d.HullEdge
This class is an abstraction of an edge ( place where surfaces end )
- Author:
- Sebastiano Spicuglia
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanReturns true if the faces adjacent to this edge are both visible in the current convex hull, false otherwise.booleanHullFace[]Returns the array of the faces adjacent to this edge.getEndPoint(int i) Returns the points that limit this edge.getFace(int i) protected HullFaceReturns the new face.inthashCode()protected booleanTrue if this edge is no longer in the convex hull, false otherwise.protected booleanReturns true if one or more faces adjacent to this edge are visible in the current convex hull, false otherwise.protected voidsetAdjFaceAt(HullFace face, int i) Allows you to set at indexithe valuefacein the adjFaces field.protected voidsetDelete(boolean b) Setter for the delete fieldvoidsetEndPoint(int i, HullVertex v) voidsetEndPoints(HullVertex p0, HullVertex p1) Setters for endPoints field.voidprotected voidsetFirstAdjFace(HullFace face) Setter for first adjacent faceprotected voidsetNewFace(HullFace face) Setter for new face fieldprotected voidsetSecondAdjFace(HullFace face) Setter for second adjacent face
-
Field Details
-
next
-
prev
-
-
Constructor Details
-
HullEdge
public HullEdge()Creates a new Edge object.
-
-
Method Details
-
hashCode
-
equals
-
areAllFacesVisible
protected boolean areAllFacesVisible()Returns true if the faces adjacent to this edge are both visible in the current convex hull, false otherwise.- Returns:
-
getAdjFaces
Returns the array of the faces adjacent to this edge.- Returns:
- the array of the faces adjacent to this edge.
-
getEndPoints
Returns the points that limit this edge.- Returns:
- the points that limit this edge.
-
getNewFace
-
isDeleted
protected boolean isDeleted()True if this edge is no longer in the convex hull, false otherwise.- Returns:
-
isOneFaceVisible
protected boolean isOneFaceVisible()Returns true if one or more faces adjacent to this edge are visible in the current convex hull, false otherwise.- Returns:
-
setDelete
protected void setDelete(boolean b) Setter for the delete field- Parameters:
b- the value you want to set
-
setAdjFaceAt
Allows you to set at indexithe valuefacein the adjFaces field.- Parameters:
face- the value you want to seti- the index you want to modify
-
setEndPoints
Setters for endPoints field.- Parameters:
p0- first pointp1- second point
-
getEndPoint
-
setEndPoint
-
getFace
-
setFace
-
setFirstAdjFace
Setter for first adjacent face- Parameters:
face- the face you want to set
-
setSecondAdjFace
Setter for second adjacent face- Parameters:
face- the face you want to set
-
setNewFace
Setter for new face field- Parameters:
face- the face you want to set
-