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

Function EMSCRIPTEN_BINDINGS

source/MRWasmModule/MRWasmMeshMetrics.cpp:14–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace MR;
13
14EMSCRIPTEN_BINDINGS( meshlib_mesh_metrics )
15{
16 emscripten::class_<FillHoleMetric>( "FillHoleMetric" );
17
18 emscripten::function( "getCircumscribedMetric", +[]( std::shared_ptr<Mesh> m ) { return getCircumscribedMetric( *m ); } );
19 emscripten::function( "getPlaneFillMetric", +[]( std::shared_ptr<Mesh> m, int e ) { return getPlaneFillMetric( *m, EdgeId( e ) ); } );
20 emscripten::function( "getPlaneNormalizedFillMetric", +[]( std::shared_ptr<Mesh> m, int e ) { return getPlaneNormalizedFillMetric( *m, EdgeId( e ) ); } );
21 emscripten::function( "getComplexFillMetric", +[]( std::shared_ptr<Mesh> m, int e ) { return getComplexFillMetric( *m, EdgeId( e ) ); } );
22 emscripten::function( "getEdgeLengthFillMetric", +[]( std::shared_ptr<Mesh> m ) { return getEdgeLengthFillMetric( *m ); } );
23 emscripten::function( "getUniversalMetric", +[]( std::shared_ptr<Mesh> m ) { return getUniversalMetric( *m ); } );
24 emscripten::function( "getMinAreaMetric", +[]( std::shared_ptr<Mesh> m ) { return getMinAreaMetric( *m ); } );
25
26 emscripten::function( "calcCombinedFillMetric", +[]( std::shared_ptr<Mesh> m, const FaceBitSet& region, const FillHoleMetric& metric )
27 {
28 return calcCombinedFillMetric( *m, region, metric );
29 } );
30}

Callers

nothing calls this directly

Calls 8

getCircumscribedMetricFunction · 0.85
getPlaneFillMetricFunction · 0.85
getComplexFillMetricFunction · 0.85
getEdgeLengthFillMetricFunction · 0.85
getUniversalMetricFunction · 0.85
getMinAreaMetricFunction · 0.85
calcCombinedFillMetricFunction · 0.85

Tested by

no test coverage detected