ModelPatchNode.cpp 680 B

12345678910111213141516171819202122232425262728
  1. #include <boost/array.hpp>
  2. #include "anki/scene/ModelPatchNode.h"
  3. #include "anki/resource/Material.h"
  4. #include "anki/resource/MeshData.h"
  5. #include "anki/scene/ModelNode.h"
  6. #include "anki/scene/ModelNode.h"
  7. namespace anki {
  8. //==============================================================================
  9. ModelPatchNode::ModelPatchNode(const ModelPatch& modelPatch, ModelNode& parent)
  10. : PatchNode(modelPatch, SNF_NONE, parent)
  11. {}
  12. //==============================================================================
  13. void ModelPatchNode::moveUpdate()
  14. {
  15. visibilityShapeWSpace =
  16. rsrc.getMesh().getVisibilityShape().getTransformed(
  17. getWorldTransform());
  18. }
  19. } // end namespace