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:
- Perform design work.
- Create a new class derived from modifier.
- Determine if the modifier will implement a primitive or a mesh modification.
- Implement the modifier.
- Implement a property sheet if required.
- Implement the data interface.
- Implement the scripted create command.
- Specify PARAMETRIC!IDB_CREATEMODIFIER_COMMAND for the create command icon.
- Install the create command in the interface.
- Test PST thoroughly.
- Test property sheet thoroughly if implemented.
- Write scripts to validate the data interfaces thoroughly.
- 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.