Notifications
Clear all

[Closed] SDK – check topology's validity

Hi there,

I’m trying to make my first baby steps with the SDK (Modifier) and it starts to make fun at the moment! One thing I don’t understand is:
How do I calculate a mod’s data (variable) only when it doesn’t exist or something in the mesh (topology) has changed? Some kind of cache…

Thanks!

4 Replies
 lo1

At the beginning of ModifyObject, check if your cache exists and is valid. In response to things like InputChanged or NotifyRefChanged, invalidate your cache.

Mhhh…

Shouldn’t there be something like “checkValidity(TOPOLOGY)” to check the modifier pipeline? Do I have to “listen” to the parameters of the node below the modifer?

 lo1

You don’t have to listen for specific parameters. NotifyInputChanged sends you the partID mask which has changed.

Thanks! I will try it this way.
THank you very much!