Class Face
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.BallPivoting.Face
-
public class Face extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]
_ffi
protected Face[]
_ffp
int
_flags
protected int[]
_fvi
protected Face[]
_fvp
protected float
_q
protected Point3[]
_wn
private static int
b
static int
BORDER0
static int
BORDER1
static int
BORDER2
static int
DELETED
static int
FEATURE0
static int
FEATURE1
static int
FEATURE2
protected Face[]
fs
int
imark
Point3
n
static int
NORMX
static int
NORMY
static int
NORMZ
static int
NOTREAD
static int
NOTWRITE
static int
SELECTED
static int
USER0
static int
USER1
static int
USER2
static int
USER3
protected Vertex[]
v
protected int[]
v_index
protected int[]
zs
-
Constructor Summary
Constructors Constructor Description Face()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Face
assign(Face f)
Face
cFFp(int j)
void
ClearB(int i)
void
ClearD()
void
ClearFF(int i)
void
ClearFlags()
void
ClearR()
void
ClearS()
void
ClearUserBit(int userBit)
void
ClearW()
Point3
cP(int j)
Point3
cP0(int j)
Point3
cP1(int j)
Point3
cP2(int j)
Vertex
cV(int j)
Vertex
cV0(int j)
Vertex
cV1(int j)
Vertex
cV2(int j)
Face
cVFp(int j)
static boolean
DeleteBitFlag(int bitval)
boolean
equals(Face f)
int
FFi(int j)
Return the index that the face have in the j-th adjacent face.Face
FFp(int j)
Return the pointer to the j-th adjacent face.Face
FFp1(int j)
Face
FFp2(int j)
int
Flags()
void
GetBBox(Box3 bb)
int
getIndex(Vertex vertex)
int
getV_index(int idx)
static boolean
HasFFAdjacency()
static boolean
HasVertexRef()
static boolean
HasVFAdjacency()
int
IMark()
void
init()
void
InitIMark()
boolean
IsB(int i)
boolean
IsBorder(Face f, int j)
Return a boolean that indicate if the j-th edge of the face is a border.boolean
IsD()
boolean
IsDeleted()
boolean
IsFF(int i)
boolean
IsManifold(Face f, int j)
Return a boolean that indicate if the face is complex.boolean
IsR()
boolean
IsRW()
boolean
IsS()
boolean
IsUserBit(int userBit)
boolean
IsW()
static int
LastBitFlag()
Point3
N()
static int
NewBitFlag()
int
Next(int i)
void
Nexts(Face f, int[] z)
Point3
P(int j)
Point3
P0(int j)
Point3
P1(int j)
Point3
P2(int j)
int
Prev(int i)
float
Q()
void
SetB(int i)
void
setcFFp(int j, Face f)
void
SetD()
void
SetFF(int i)
void
setFFi(int j, int v)
void
setFFp(int j, Face f)
void
setFFp1(int j, Face f)
void
setFFp2(int j, Face f)
void
SetFlags(int flagp)
void
setN(Point3 _n)
void
SetR()
void
SetS()
void
SetUserBit(int userBit)
void
setV(int j, Vertex vertex)
void
setV_index(int j, int idx)
void
setVFp(int j, Face f)
void
SetW()
int
UberFlags()
Vertex
UberV(int j)
Vertex
V(int j)
Vertex
V0(int j)
Return the pointer to the ((j+1)%3)-th vertex of the face.Vertex
V1(int j)
Vertex
V2(int j)
Face
VFp(int j)
int
VN()
Point3
WN(int i)
-
-
-
Field Detail
-
DELETED
public static int DELETED
-
NOTREAD
public static int NOTREAD
-
NOTWRITE
public static int NOTWRITE
-
SELECTED
public static int SELECTED
-
BORDER0
public static int BORDER0
-
BORDER1
public static int BORDER1
-
BORDER2
public static int BORDER2
-
NORMX
public static int NORMX
-
NORMY
public static int NORMY
-
NORMZ
public static int NORMZ
-
FEATURE0
public static int FEATURE0
-
FEATURE1
public static int FEATURE1
-
FEATURE2
public static int FEATURE2
-
USER0
public static int USER0
-
USER1
public static int USER1
-
USER2
public static int USER2
-
USER3
public static int USER3
-
_flags
public int _flags
-
b
private static int b
-
imark
public int imark
-
n
public Point3 n
-
v
protected Vertex[] v
-
v_index
protected int[] v_index
-
_ffp
protected Face[] _ffp
-
_ffi
protected int[] _ffi
-
_fvp
protected Face[] _fvp
-
_fvi
protected int[] _fvi
-
fs
protected Face[] fs
-
zs
protected int[] zs
-
_q
protected float _q
-
_wn
protected Point3[] _wn
-
-
Method Detail
-
VN
public int VN()
-
Prev
public int Prev(int i)
-
Next
public int Next(int i)
-
init
public final void init()
-
equals
public final boolean equals(Face f)
-
N
public final Point3 N()
-
setN
public final void setN(Point3 _n)
-
IsManifold
public final boolean IsManifold(Face f, int j)
Return a boolean that indicate if the face is complex.- Parameters:
j
- Index of the edge- Returns:
- true se la faccia e' manifold, false altrimenti
-
IsBorder
public final boolean IsBorder(Face f, int j)
Return a boolean that indicate if the j-th edge of the face is a border.- Parameters:
j
- Index of the edge- Returns:
- true if j is an edge of border, false otherwise
-
HasFFAdjacency
public static boolean HasFFAdjacency()
-
getIndex
public final int getIndex(Vertex vertex)
-
V
public final Vertex V(int j)
-
setV
public final void setV(int j, Vertex vertex)
-
setV_index
public final void setV_index(int j, int idx)
-
getV_index
public final int getV_index(int idx)
-
cV
public final Vertex cV(int j)
-
P
public final Point3 P(int j)
-
cP
public final Point3 cP(int j)
-
V0
public final Vertex V0(int j)
Return the pointer to the ((j+1)%3)-th vertex of the face.- Parameters:
j
- Index of the face vertex.
-
V1
public final Vertex V1(int j)
-
V2
public final Vertex V2(int j)
-
cV0
public final Vertex cV0(int j)
-
cV1
public final Vertex cV1(int j)
-
cV2
public final Vertex cV2(int j)
-
P0
public final Point3 P0(int j)
-
P1
public final Point3 P1(int j)
-
P2
public final Point3 P2(int j)
-
cP0
public final Point3 cP0(int j)
-
cP1
public final Point3 cP1(int j)
-
cP2
public final Point3 cP2(int j)
-
UberV
public final Vertex UberV(int j)
-
HasVertexRef
public static boolean HasVertexRef()
-
Nexts
public final void Nexts(Face f, int[] z)
-
LastBitFlag
public static final int LastBitFlag()
-
NewBitFlag
public static final int NewBitFlag()
-
DeleteBitFlag
public static final boolean DeleteBitFlag(int bitval)
-
ClearFlags
public final void ClearFlags()
-
Flags
public final int Flags()
-
UberFlags
public final int UberFlags()
-
SetFlags
public final void SetFlags(int flagp)
-
IsD
public final boolean IsD()
-
SetD
public final void SetD()
-
ClearD
public final void ClearD()
-
IsDeleted
public final boolean IsDeleted()
-
IsR
public final boolean IsR()
-
SetR
public final void SetR()
-
ClearR
public final void ClearR()
-
IsW
public final boolean IsW()
-
SetW
public final void SetW()
-
ClearW
public final void ClearW()
-
IsRW
public final boolean IsRW()
-
IsS
public final boolean IsS()
-
SetS
public final void SetS()
-
ClearS
public final void ClearS()
-
IsB
public final boolean IsB(int i)
-
SetB
public final void SetB(int i)
-
ClearB
public final void ClearB(int i)
-
IsFF
public final boolean IsFF(int i)
-
SetFF
public final void SetFF(int i)
-
ClearFF
public final void ClearFF(int i)
-
IsUserBit
public final boolean IsUserBit(int userBit)
-
SetUserBit
public final void SetUserBit(int userBit)
-
ClearUserBit
public final void ClearUserBit(int userBit)
-
GetBBox
public final void GetBBox(Box3 bb)
-
IMark
public final int IMark()
-
InitIMark
public final void InitIMark()
-
HasVFAdjacency
public static final boolean HasVFAdjacency()
-
WN
public final Point3 WN(int i)
-
Q
public final float Q()
-
VFp
public final Face VFp(int j)
-
setVFp
public final void setVFp(int j, Face f)
-
FFp
public final Face FFp(int j)
Return the pointer to the j-th adjacent face.- Parameters:
j
- Index of the edge.
-
setFFp
public final void setFFp(int j, Face f)
-
cFFp
public final Face cFFp(int j)
-
cVFp
public final Face cVFp(int j)
-
setcFFp
public final void setcFFp(int j, Face f)
-
FFp1
public final Face FFp1(int j)
-
setFFp1
public final void setFFp1(int j, Face f)
-
FFp2
public final Face FFp2(int j)
-
setFFp2
public final void setFFp2(int j, Face f)
-
FFi
public final int FFi(int j)
Return the index that the face have in the j-th adjacent face.- Parameters:
j
- Index of the edge.
-
setFFi
public final void setFFi(int j, int v)
-
-