public class SOTBuilder
extends java.lang.Object
Constructor and Description |
---|
SOTBuilder() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkMatching(CornerTableInterface ds,
int[] M)
Check the validity of the matching between triangles and faces computed by the
Matching & pairing procedure.
|
static int[] |
createSortedTable(int[] V,
int[] M)
Deprecated.
|
static SOT |
createSOTFromCornerTable(CornerTable ct,
float[] coordF,
int seed,
boolean useColors)
Construct the SOT data structure.
|
static int[] |
getFacePermutation(CornerTableInterface ds,
int[] M)
Given the matching between vertices and faces, return an array storing the face re-ordering.
|
static void |
matchVerticesToFaces(CornerTableInterface ds,
int c,
int[] M,
int[] colors)
Perform the Matching & pairing procedure described in Gurung et al.
|
public static SOT createSOTFromCornerTable(CornerTable ct, float[] coordF, int seed, boolean useColors)
coordF
- array of size 3*N storing vertex coordinatesct
- Corner Table representation of a triangle meshseed
- starting seed corneruseColors
- if true assign colors to faces during the matching phase (only for visual purposes)public static void matchVerticesToFaces(CornerTableInterface ds, int c, int[] M, int[] colors)
ds
- Corner Table representation of the input triangle meshc
- starting seed cornerM
- an array of size 'N' storing, for each vertex 'v', the corresponding matching trianglecolors
- an array of size F storing the colors of faces (only for debugging purposes)public static boolean checkMatching(CornerTableInterface ds, int[] M)
ds
- Corner Table representation of the input triangle meshM
- an array of size 'N' storing, for each vertex 'v', the corresponding matching trianglepublic static int[] getFacePermutation(CornerTableInterface ds, int[] M)
ds
- Corner Table representation of the input triangle meshM
- an array of size 'N' storing, for each vertex 'v', the corresponding matching triangle@Deprecated public static int[] createSortedTable(int[] V, int[] M)
V
- M
-