| 9 | using namespace MR; |
| 10 | |
| 11 | EMSCRIPTEN_BINDINGS( meshlib_region_boundary ) |
| 12 | { |
| 13 | emscripten::function( "getIncidentVertsFromFaces", +[]( const MeshTopology& t, const FaceBitSet& faces ) |
| 14 | { |
| 15 | return getIncidentVerts( t, faces ); |
| 16 | } ); |
| 17 | emscripten::function( "getIncidentVertsFromEdges", +[]( const MeshTopology& t, const UndirectedEdgeBitSet& edges ) |
| 18 | { |
| 19 | return getIncidentVerts( t, edges ); |
| 20 | } ); |
| 21 | |
| 22 | emscripten::function( "getIncidentFacesFromVerts", +[]( const MeshTopology& t, const VertBitSet& verts ) |
| 23 | { |
| 24 | return getIncidentFaces( t, verts ); |
| 25 | } ); |
| 26 | emscripten::function( "getIncidentFacesFromEdges", +[]( const MeshTopology& t, const UndirectedEdgeBitSet& edges ) |
| 27 | { |
| 28 | return getIncidentFaces( t, edges ); |
| 29 | } ); |
| 30 | |
| 31 | emscripten::function( "getIncidentEdgesFromFaces", +[]( const MeshTopology& t, const FaceBitSet& faces ) |
| 32 | { |
| 33 | return getIncidentEdges( t, faces ); |
| 34 | } ); |
| 35 | emscripten::function( "getIncidentEdgesFromEdges", +[]( const MeshTopology& t, const UndirectedEdgeBitSet& edges ) |
| 36 | { |
| 37 | return getIncidentEdges( t, edges ); |
| 38 | } ); |
| 39 | |
| 40 | emscripten::function( "getInnerVertsFromFaces", +[]( const MeshTopology& t, const FaceBitSet& region ) |
| 41 | { |
| 42 | return getInnerVerts( t, ®ion ); |
| 43 | } ); |
| 44 | emscripten::function( "getInnerVertsFromEdges", +[]( const MeshTopology& t, const UndirectedEdgeBitSet& edges ) |
| 45 | { |
| 46 | return getInnerVerts( t, edges ); |
| 47 | } ); |
| 48 | |
| 49 | emscripten::function( "getInnerFaces", +[]( const MeshTopology& t, const VertBitSet& verts ) |
| 50 | { |
| 51 | return getInnerFaces( t, verts ); |
| 52 | } ); |
| 53 | |
| 54 | emscripten::function( "getInnerEdgesFromVerts", +[]( const MeshTopology& t, const VertBitSet& verts ) |
| 55 | { |
| 56 | return getInnerEdges( t, verts ); |
| 57 | } ); |
| 58 | emscripten::function( "getInnerEdgesFromFaces", +[]( const MeshTopology& t, const FaceBitSet& region ) |
| 59 | { |
| 60 | return getInnerEdges( t, region ); |
| 61 | } ); |
| 62 | |
| 63 | emscripten::function( "getBoundaryVerts", +[]( const MeshTopology& t, const FaceBitSet& region ) |
| 64 | { |
| 65 | return getBoundaryVerts( t, ®ion ); |
| 66 | } ); |
| 67 | |
| 68 | emscripten::function( "trackRightBoundaryLoop", +[]( const MeshTopology& t, int e0 ) |
nothing calls this directly
no test coverage detected