| 12 | using namespace MR; |
| 13 | |
| 14 | EMSCRIPTEN_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 | } |
nothing calls this directly
no test coverage detected