.. _PluginExamples: Available plugins ================= This page intends to list all the publicly available OpenMfx plugins, `let us know `_ if we forgot yours! To begin with, there are sample plugins in the OpenMfx repository: `examples/plugins `_. Some of them are outdated, relevant examples are for instance ``mfx_test_parameters_plugin`` and ``mfx_uv_transform``. `MfxVCG `_ is an example of OpenMfx plug-in that provides mesh filters from `VCGlib `_, the core library of `MeshLab `_. `MfxVTK `_ provides effects from the `Visualization ToolKit `_ as an OpenMfx plug-in. `MfxHoudini `_ is an OpenMfx plug-in that calls the `Houdini Engine `_ to be able to run any Houdini Digital Asset as a mesh effect. `MfxExamples `_ is a simple repository using the C++ SDK that one can use as a starter pack. Simple example -------------- Here is a really simple example of how to use the API .. sourcecode:: cpp #include #include class MyEffect : public MfxEffect { protected: OfxStatus Describe(OfxMeshEffectHandle descriptor) override { AddInput(kOfxMeshMainInput); AddInput(kOfxMeshMainOutput); AddParam("axis", 1) .Label("Axis") .Range(0, 2); AddParam("translation", { 0.0, 0.0 }) .Label("Translation"); return kOfxStatOK; } OfxStatus Cook(OfxMeshEffectHandle instance) override { // ... } }; MfxRegister( MyEffect );