FabricCooker.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/RTTI/RTTI.h>
  10. #include <AzCore/Interface/Interface.h>
  11. #include <NvCloth/IFabricCooker.h>
  12. namespace NvCloth
  13. {
  14. //! Implementation of the IFabricCooker interface.
  15. class FabricCooker
  16. : public AZ::Interface<IFabricCooker>::Registrar
  17. {
  18. public:
  19. AZ_RTTI(FabricCooker, "{14EC2D3E-A36C-466E-BBDB-462A9194586E}", IFabricCooker);
  20. protected:
  21. // IFabricCooker overrides ...
  22. AZStd::optional<FabricCookedData> CookFabric(
  23. const AZStd::vector<SimParticleFormat>& particles,
  24. const AZStd::vector<SimIndexType>& indices,
  25. const AZ::Vector3& fabricGravity = AZ::Vector3(0.0f, 0.0f, -9.81f),
  26. bool useGeodesicTether = true) override;
  27. void SimplifyMesh(
  28. const AZStd::vector<SimParticleFormat>& particles,
  29. const AZStd::vector<SimIndexType>& indices,
  30. AZStd::vector<SimParticleFormat>& simplifiedParticles,
  31. AZStd::vector<SimIndexType>& simplifiedIndices,
  32. AZStd::vector<int>& remappedVertices,
  33. bool removeStaticTriangles = true) override;
  34. };
  35. } // namespace NvCloth