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

Function EMSCRIPTEN_BINDINGS

source/MRWasmModule/MRWasmFreeFormDeformer.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace MR;
13
14EMSCRIPTEN_BINDINGS( meshlib_free_form_deformer )
15{
16 emscripten::class_<FreeFormDeformer>( "FreeFormDeformer" )
17 .constructor( +[]( std::shared_ptr<Mesh> mesh ) { return new FreeFormDeformer( *mesh ); }, emscripten::allow_raw_pointers() )
18 .function( "init", +[]( FreeFormDeformer& self ) { self.init(); } )
19 .function( "init", +[]( FreeFormDeformer& self, const Vector3i& resolution ) { self.init( resolution ); } )
20 .function( "init", +[]( FreeFormDeformer& self, const Vector3i& resolution, const Box3f& initialBox ) { self.init( resolution, initialBox ); } )
21 .function( "setRefGridPointPosition", &FreeFormDeformer::setRefGridPointPosition )
22 .function( "getRefGridPointPosition", &FreeFormDeformer::getRefGridPointPosition )
23 .function( "apply", &FreeFormDeformer::apply );
24}

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected