// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2016 Alec Jacobson // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at http://mozilla.org/MPL/2.0/. #include "unzip_corners.h" #include "unique_rows.h" template < typename DerivedA, typename DerivedU, typename DerivedG, typename DerivedJ > IGL_INLINE void igl::unzip_corners( const std::vector > & A, Eigen::PlainObjectBase & U, Eigen::PlainObjectBase & G, Eigen::PlainObjectBase & J) { if(A.size() == 0) { U.resize(0,0); G.resize(0,3); J.resize(0,0); return; } const size_t num_a = A.size(); const typename DerivedA::Index m = A[0].get().rows(); DerivedU C(m*3,num_a); for(int a = 0;a const, Eigen::Matrix, Eigen::Matrix, Eigen::Matrix >(std::vector const>, std::allocator const> > > const&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&); #endif