Files
o3de/Gems/NvCloth/Code/Source/System/FabricCooker.h
T
Steve Pham b4a2edec6a Final update copyright headers to reference license files at the repo root (#1693)
* Final update copyright headers to reference license files at the repo root

Signed-off-by: spham <spham@amazon.com>

* Fix copyright validator unit tests to support the stale O3DE header scenario

Signed-off-by: spham <spham@amazon.com>
2021-06-30 19:51:55 -07:00

40 lines
1.3 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <AzCore/RTTI/RTTI.h>
#include <AzCore/Interface/Interface.h>
#include <NvCloth/IFabricCooker.h>
namespace NvCloth
{
//! Implementation of the IFabricCooker interface.
class FabricCooker
: public AZ::Interface<IFabricCooker>::Registrar
{
public:
AZ_RTTI(FabricCooker, "{14EC2D3E-A36C-466E-BBDB-462A9194586E}", IFabricCooker);
protected:
// IFabricCooker overrides ...
AZStd::optional<FabricCookedData> CookFabric(
const AZStd::vector<SimParticleFormat>& particles,
const AZStd::vector<SimIndexType>& indices,
const AZ::Vector3& fabricGravity = AZ::Vector3(0.0f, 0.0f, -9.81f),
bool useGeodesicTether = true) override;
void SimplifyMesh(
const AZStd::vector<SimParticleFormat>& particles,
const AZStd::vector<SimIndexType>& indices,
AZStd::vector<SimParticleFormat>& simplifiedParticles,
AZStd::vector<SimIndexType>& simplifiedIndices,
AZStd::vector<int>& remappedVertices,
bool removeStaticTriangles = true) override;
};
} // namespace NvCloth