finds an edge originated from v, which is located in the same triangle as p
| 64 | |
| 65 | // finds an edge originated from v, which is located in the same triangle as p |
| 66 | static EdgeId commonEdge( const MeshTopology & topology, VertId v, const MeshTriPoint & p ) |
| 67 | { |
| 68 | for ( EdgeId e : orgRing( topology, v ) ) |
| 69 | { |
| 70 | MeshTriPoint mtp0( p ); |
| 71 | MeshTriPoint mtp1( e, { 0.5f, 0.0f } ); |
| 72 | if ( fromSameTriangle( topology, mtp0, mtp1 ) ) |
| 73 | return e; |
| 74 | } |
| 75 | return {}; |
| 76 | } |
| 77 | |
| 78 | // finds an edge originated from v, which is located in the same triangle as p, and next edge does not satisfy this property |
| 79 | static EdgeId lastCommonEdge( const MeshTopology & topology, VertId v, const MeshTriPoint & p ) |
no test coverage detected