1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- // This file is part of libigl, a simple c++ geometry processing library.
- //
- // Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
- //
- // 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/.
- #ifndef IGL_DRAW_SKELETON_3D_H
- #define IGL_DRAW_SKELETON_3D_H
- #include "igl_inline.h"
- #include "material_colors.h"
- #include <Eigen/Core>
- namespace igl
- {
- // Draw a skeleton
- //
- // Inputs:
- // C #C by dim List of joint rest positions
- // BE #BE by 2 list of bone edge indices into C
- // T #BE*(dim+1) by dim matrix of stacked transposed bone transformations
- // color #BE|1 by 4 list of color
- template <
- typename DerivedC,
- typename DerivedBE,
- typename DerivedT,
- typename Derivedcolor>
- IGL_INLINE void draw_skeleton_3d(
- const Eigen::PlainObjectBase<DerivedC> & C,
- const Eigen::PlainObjectBase<DerivedBE> & BE,
- const Eigen::PlainObjectBase<DerivedT> & T,
- const Eigen::PlainObjectBase<Derivedcolor> & color);
- // Wrapper with each T = Identity
- template <typename DerivedC, typename DerivedBE, typename DerivedT>
- IGL_INLINE void draw_skeleton_3d(
- const Eigen::PlainObjectBase<DerivedC> & C,
- const Eigen::PlainObjectBase<DerivedBE> & BE,
- const Eigen::PlainObjectBase<DerivedT> & T);
- // Default color
- template <typename DerivedC, typename DerivedBE>
- IGL_INLINE void draw_skeleton_3d(
- const Eigen::PlainObjectBase<DerivedC> & C,
- const Eigen::PlainObjectBase<DerivedBE> & BE);
- };
- #ifdef IGL_HEADER_ONLY
- # include "draw_skeleton_3d.h"
- #endif
- #endif
|