Robust polylines tracing for N-symmetry direction field on triangulated surfaces
Résumé
We are proposing an algorithm for tracing polylines that are oriented bya direction field defined on a triangle mesh. The challenge is to ensure thattwo such polylines cannot cross or merge. This property is fundamental formesh segmentation and is impossible to enforce with existing algorithms.The core of our contribution is to determine how polylines cross eachtriangle. Our solution is inspired by EdgeMaps where each triangle boundaryis decomposed into inflow and outflow intervals such that each inflowinterval is mapped onto an outflow interval. To cross a triangle, we find theinflow interval that contains the entry point, and link it to the correspondingoutflow interval, with the same barycentric coordinate. To ensure that polylinescannot merge or cross, we introduce a new direction field representation,we resolve the inflow/outflow interval pairing with a guaranteed combinatorialalgorithm, and propagate the barycentric positions with arbitraryprecision number representation. Using these techniques, two streamlinescrossing the same triangle cannot merge or cross, but only locally overlapwhen all streamlines extremities are located on the same edge.Cross-free and merge-free polylines can be traced on the mesh by iterativelycrossing triangles. Vector field singularities and polyline/vertexcrossing are characterized and consistently handled.