File arap.h
File List > constitution > arap.h
Go to the documentation of this file
#pragma once
#include <uipc/constitution/finite_element_constitution.h>
namespace uipc::constitution
{
class UIPC_CONSTITUTION_API ARAP : public FiniteElementConstitution
{
using Base = FiniteElementConstitution;
public:
ARAP(const Json& config = default_config()) noexcept;
void apply_to(geometry::SimplicialComplex& sc, Float kappa, Float mass_density = 1e3) const;
static Json default_config() noexcept;
protected:
virtual U64 get_uid() const noexcept override;
private:
Json m_config;
};
} // namespace uipc::constitution