-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNumpyReader.h
More file actions
executable file
·26 lines (18 loc) · 937 Bytes
/
NumpyReader.h
File metadata and controls
executable file
·26 lines (18 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
///////////////////////////////////////////////////////////////////////////////
// Dem Bones - Skinning Decomposition Library //
// Copyright (c) 2019, Electronic Arts. All rights reserved. //
///////////////////////////////////////////////////////////////////////////////
#pragma once
#include <vector>
#include <DemBones/DemBonesExt.h>
#include <DemBones/DemBones.h>
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include<Eigen/Dense>
using namespace std;
using namespace Dem;
/** Read FBX files and set: model.u, model.fv, model.w (if exist), model.m (if exist), model.nB,
model.boneName (if exist), model.parent (if exist), model.bind (if exist), model.preMulInv (if exist), model.rotOrder (if exist), model.orient (if exist)
@return true if success
*/
bool readNumpy(Eigen::MatrixXd vert_data,vector< vector<int> > face_data, DemBonesExt<double, float>& model);