Implementing A Modifier

Quick Guide

Modifiers are a bit easier to implement because a lot of the generic node design work is not required. However the modifier code itself can certainly be complex. [ The SimplifyModifier has over 1000 lines of code. ]

Implement A Modifier

Basic Steps

To implement a modifier, complete the following:

  1. Perform design work.
  2. Create a new class derived from modifier.
  3. Determine if the modifier will implement a primitive or a mesh modification.
  4. Implement the modifier.
  5. Implement a property sheet if required.
  6. Implement the data interface.
  7. Implement the scripted create command.
  8. Specify PARAMETRIC!IDB_CREATEMODIFIER_COMMAND for the create command icon.
  9. Install the create command in the interface.
  10. Test PST thoroughly.
  11. Test property sheet thoroughly if implemented.
  12. Write scripts to validate the data interfaces thoroughly.
  13. Modify SCENOME.XML to include a snippet of XML for the node command menu.

Notes

You can use a custom icon for a modifier but we recommend that you use the existing modifier icon because users expect modifiers to use this icon.