Skip to content

pzpzpzp1/CreaseAlignedCrossFields

Repository files navigation

Crease Aligned Cross Fields

Introduction

This code includes algorithms for computing crease-aligned cross fields on triangle meshes:

External Dependencies

Installation

example contains building instructions. In summary, you will need TBB, Mosek 9.0, gptoolbox, and Arff.

Usage

The main command for computing fields is SolveLpCrossField. See example for building and run instructions.

Loading Models

Some triangle meshes in obj format are included in the Meshes directory for convenience. See example for how to load.

Computing Cross Fields

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)

Visualization

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published