MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / EMSCRIPTEN_BINDINGS

Function EMSCRIPTEN_BINDINGS

source/MRWasmModule/MRWasmRegionBoundary.cpp:11–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using namespace MR;
10
11EMSCRIPTEN_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, &region );
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, &region );
66 } );
67
68 emscripten::function( "trackRightBoundaryLoop", +[]( const MeshTopology& t, int e0 )

Callers

nothing calls this directly

Calls 9

getIncidentVertsFunction · 0.85
getIncidentFacesFunction · 0.85
getIncidentEdgesFunction · 0.85
getInnerVertsFunction · 0.85
getInnerFacesFunction · 0.85
getInnerEdgesFunction · 0.85
getBoundaryVertsFunction · 0.85
findRightBoundaryFunction · 0.85
trackRightBoundaryLoopFunction · 0.50

Tested by

no test coverage detected