mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-24 09:11:23 -06:00
Building igl statically and moving to the dep scripts
Fixing dep build script on Windows and removing some warnings. Use bundled igl by default. Not building with the dependency scripts if not explicitly stated. This way, it will stay in Fix the libigl patch to include C source files in header only mode.
This commit is contained in:
parent
89e39e3895
commit
2ae2672ee9
1095 changed files with 181 additions and 5 deletions
74
src/libigl/igl/forward_kinematics.h
Normal file
74
src/libigl/igl/forward_kinematics.h
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
// 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_FORWARD_KINEMATICS_H
|
||||
#define IGL_FORWARD_KINEMATICS_H
|
||||
#include "igl_inline.h"
|
||||
#include <Eigen/Core>
|
||||
#include <Eigen/Geometry>
|
||||
#include <Eigen/StdVector>
|
||||
#include <vector>
|
||||
|
||||
namespace igl
|
||||
{
|
||||
// Given a skeleton and a set of relative bone rotations compute absolute
|
||||
// rigid transformations for each bone.
|
||||
//
|
||||
// Inputs:
|
||||
// C #C by dim list of joint positions
|
||||
// BE #BE by 2 list of bone edge indices
|
||||
// P #BE list of parent indices into BE
|
||||
// dQ #BE list of relative rotations
|
||||
// dT #BE list of relative translations
|
||||
// Outputs:
|
||||
// vQ #BE list of absolute rotations
|
||||
// vT #BE list of absolute translations
|
||||
IGL_INLINE void forward_kinematics(
|
||||
const Eigen::MatrixXd & C,
|
||||
const Eigen::MatrixXi & BE,
|
||||
const Eigen::VectorXi & P,
|
||||
const std::vector<
|
||||
Eigen::Quaterniond,Eigen::aligned_allocator<Eigen::Quaterniond> > & dQ,
|
||||
const std::vector<Eigen::Vector3d> & dT,
|
||||
std::vector<
|
||||
Eigen::Quaterniond,Eigen::aligned_allocator<Eigen::Quaterniond> > & vQ,
|
||||
std::vector<Eigen::Vector3d> & vT);
|
||||
// Wrapper assuming each dT[i] == {0,0,0}
|
||||
IGL_INLINE void forward_kinematics(
|
||||
const Eigen::MatrixXd & C,
|
||||
const Eigen::MatrixXi & BE,
|
||||
const Eigen::VectorXi & P,
|
||||
const std::vector<
|
||||
Eigen::Quaterniond,Eigen::aligned_allocator<Eigen::Quaterniond> > & dQ,
|
||||
std::vector<
|
||||
Eigen::Quaterniond,Eigen::aligned_allocator<Eigen::Quaterniond> > & vQ,
|
||||
std::vector<Eigen::Vector3d> & vT);
|
||||
|
||||
// Outputs:
|
||||
// T #BE*(dim+1) by dim stack of transposed transformation matrices
|
||||
IGL_INLINE void forward_kinematics(
|
||||
const Eigen::MatrixXd & C,
|
||||
const Eigen::MatrixXi & BE,
|
||||
const Eigen::VectorXi & P,
|
||||
const std::vector<
|
||||
Eigen::Quaterniond,Eigen::aligned_allocator<Eigen::Quaterniond> > & dQ,
|
||||
const std::vector<Eigen::Vector3d> & dT,
|
||||
Eigen::MatrixXd & T);
|
||||
IGL_INLINE void forward_kinematics(
|
||||
const Eigen::MatrixXd & C,
|
||||
const Eigen::MatrixXi & BE,
|
||||
const Eigen::VectorXi & P,
|
||||
const std::vector<
|
||||
Eigen::Quaterniond,Eigen::aligned_allocator<Eigen::Quaterniond> > & dQ,
|
||||
Eigen::MatrixXd & T);
|
||||
|
||||
};
|
||||
|
||||
#ifndef IGL_STATIC_LIBRARY
|
||||
# include "forward_kinematics.cpp"
|
||||
#endif
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue