This is an extension of the PerSimplexFunction class that uses autodiff encoding for differentiations...
const Mesh & mesh() const
This is the implementation of the AMIPS energy function of a triangle mesh that can be embedded in 2d...
DScalar eval(const simplex::Simplex &domain_simplex, const std::vector< DSVec > &coordinates) const override
This function defines a function f(x) where f is defined over a simplex domain and the variables for ...
TriangleAMIPS(const TriMesh &mesh, const attribute::MeshAttributeHandle &vertex_attribute_handle)
Automatic differentiation scalar with first- and second-order derivatives.