.. _program_listing_file_Source_Physics_Src_PBD_Cloth_ClothSolvingView.cpp: Program Listing for File ClothSolvingView.cpp ============================================= |exhale_lsh| :ref:`Return to documentation for file ` (``Source\Physics\Src\PBD\Cloth\ClothSolvingView.cpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #include "Physics/PBD/Cloth/ClothSolvingView.h" namespace Azura { namespace Physics { namespace PBD { ClothSolvingView::ClothSolvingView(Containers::Vector& dataSet, Containers::Vector& invMassData, U32 numDistanceConstraints, U32 numLongRangeConstraints, U32 numBendingConstraints, Memory::Allocator& allocator) : SolvingView(dataSet, invMassData), m_distanceConstraints(numDistanceConstraints, allocator), m_longRangeConstraints(numLongRangeConstraints, allocator), m_bendingConstraints(numBendingConstraints, allocator) { } void ClothSolvingView::AddConstraint(const DistanceConstraint& constraint) { m_distanceConstraints.PushBack(constraint); } void ClothSolvingView::AddConstraint(DistanceConstraint&& constraint) { m_distanceConstraints.PushBack(std::move(constraint)); } void ClothSolvingView::AddConstraint(const LongRangeConstraint& constraint) { m_longRangeConstraints.PushBack(constraint); } void ClothSolvingView::AddConstraint(LongRangeConstraint&& constraint) { m_longRangeConstraints.PushBack(std::move(constraint)); } void ClothSolvingView::AddConstraint(const BendingConstraint& constraint) { m_bendingConstraints.PushBack(constraint); } void ClothSolvingView::AddConstraint(BendingConstraint&& constraint) { m_bendingConstraints.PushBack(std::move(constraint)); } const Containers::Vector& ClothSolvingView::GetDistanceConstraints() const { return m_distanceConstraints; } const Containers::Vector& ClothSolvingView::GetLongRangeConstraints() const { return m_longRangeConstraints; } const Containers::Vector& ClothSolvingView::GetBendingConstraints() const { return m_bendingConstraints; } void ClothSolvingView::Solve(Containers::Vector& projectionPoints) { UNUSED(projectionPoints); } } // namespace PBD } // namespace Physics } // namespace Azura