This code includes algorithms for computing crease-aligned cross fields on triangle meshes:
- Arff
- Mosek 9.0 (C++ Fusion API)
- Intel TBB
- gptoolbox
example contains building instructions. In summary, you will need TBB, Mosek 9.0, gptoolbox, and Arff.
The main command for computing fields is SolveLpCrossField. See example for building and run instructions.
Some triangle meshes in obj format are included in the Meshes directory for convenience. See example for how to load.
The following command computes a cross field on the triangle mesh whose vertices are X and triangles are T.
crossField = SolveLpCrossField(X, T, '', 0, 2, True)
The sixth argument is a flag for toggling visualization. Leave as true to get a figure of the cross field. Tools are available online for computing more detailed visualizations such as streamlines of the cross field or finding singular locations. (https://github.com/avaxman/Directional/blob/master/docs/tutorial.md)