Skip to content

File constraint.h

File List > constitution > constraint.h

Go to the documentation of this file

#pragma once
#include <uipc/constitution/constitution.h>
#include <uipc/geometry/simplicial_complex.h>

namespace uipc::constitution
{
class UIPC_CORE_API Constraint : public IConstitution
{
  public:
    Constraint() noexcept;

  protected:
    virtual U64 get_uid() const noexcept = 0;

    void apply_to(geometry::SimplicialComplex& sc) const;
};
}  // namespace uipc::constitution