Skip to content

Refactor to move SphObject and LevelSetObject to Behaviours (SphMethod, LevelSetMethod)

Brief

This is an important milestone in ECS refactoring, as we finally get to delete the DynamicObject class and convert all Object types (PbdObject, SphObject, LevelSetDeformableObject) into Behaviours (PbdMethod, SphMethod, LevelSetMethod). All simulation objects can be now directly expressed as Entity and Component / Behaviour.

Summary of Changes

  • Rename SphModel to SphSystem

  • Rename SphModelConfig to SphSystemConfig

  • Rename LevelSetModel to LevelSetSystem

  • Rename LevelSetModelConfig to LevelSetSystemConfig

  • Move SphObject functionality to SphMethod

  • Move LevelSetDeformableObject functionality to LevelSetMethod

  • Delete SphObject

  • Delete LevelSetDeformableObject

  • Delete DynamicObject

  • Update C# Wrappers

  • Move DynamicModels/ObjectModels/* --> DynamicSystems/*

  • Move DynamicModels/ObjectStates/* --> DynamicSystems/*

Future Work

SceneObject, however, still prevails. Further discussion is needed to make decisions regarding whether to keep SceneObject class or not, and if yes, what are the restricted set of classes that should inherit from it. Many current classes that inherit from the SceneObject could possibly be re-formed as Behaviours (for example, AnimationObject, PbdObjectCutting, PbdObjectGrasping, PbdObjectStitching, PbdObjectCellRemoval).

Edited by Shreeraj Jadhav

Merge request reports