public class SQUADBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int[] |
colors
store the color for each face (useful for rendering)
|
boolean |
debug
says whether running in debug mode (only for small graphs)
|
int |
f |
int |
F
number of vertices and faces
|
boolean[] |
isMatched |
boolean[] |
isPaired |
int |
N
number of vertices and faces
|
static boolean |
OFF |
static boolean |
ON |
static int |
unpairedFaces |
Constructor and Description |
---|
SQUADBuilder(CornerTable ct,
float[] coordF,
int seed,
boolean debug)
Construct the SQUAD data structure.
|
Modifier and Type | Method and Description |
---|---|
SQUAD |
build(CornerTable ct,
float[] coordF) |
int |
checkMatchingAndPairing(CornerTable ds)
Check the validity of the matching between triangles and faces computed by the
Matching & pairing procedure.
|
boolean |
checkTriangleQuadCorners(CornerTable ds)
Check the correctness of the correspondence between triangle and quad corners
Only useful for debugging |
boolean |
checkValidity(SQUAD squad)
Given the Vertex Table and the
triangle/vertex Matching
compute and return the Sorted Opposite Table.
|
int[] |
createSwingTable(CornerTable ds)
Given the Vertex Table and the
triangle/vertex Matching
compute and return the Sorted Opposite Table.
|
void |
matchingAndPairing(CornerTable ds,
int seed)
Matching & pairing procedure described in Gurung et al.
|
public static boolean ON
public static boolean OFF
public boolean debug
public int N
public int F
public int f
public int[] colors
public static int unpairedFaces
public boolean[] isPaired
public boolean[] isMatched
public SQUADBuilder(CornerTable ct, float[] coordF, int seed, boolean debug)
n
- number of verticesct
- Corner Table representation of a triangle meshseed
- starting seeddebug
- if true, set the debug mode (print intermediate results and performs tests)public SQUAD build(CornerTable ct, float[] coordF)
public void matchingAndPairing(CornerTable ds, int seed)
ds
- Corner Table representation of the input triangle meshc
- starting seed cornerpublic int checkMatchingAndPairing(CornerTable ds)
ds
- Corner Table representation of the input triangle meshpublic boolean checkTriangleQuadCorners(CornerTable ds)
ds
- Corner Table representation of the input triangle meshpublic int[] createSwingTable(CornerTable ds)
public boolean checkValidity(SQUAD squad)