libigl v2.5.0
Loading...
Searching...
No Matches
writeOBJ.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_WRITEOBJ_H
9#define IGL_WRITEOBJ_H
10#include "igl_inline.h"
11// History:
12// return type changed from void to bool Alec 20 Sept 2011
13
14#include <Eigen/Core>
15#include <string>
16#include <vector>
17
18namespace igl
19{
35 template <
36 typename DerivedV,
37 typename DerivedF,
38 typename DerivedCN,
39 typename DerivedFN,
40 typename DerivedTC,
41 typename DerivedFTC>
43 const std::string str,
44 const Eigen::MatrixBase<DerivedV>& V,
45 const Eigen::MatrixBase<DerivedF>& F,
46 const Eigen::MatrixBase<DerivedCN>& CN,
47 const Eigen::MatrixBase<DerivedFN>& FN,
48 const Eigen::MatrixBase<DerivedTC>& TC,
49 const Eigen::MatrixBase<DerivedFTC>& FTC);
51 template <typename DerivedV, typename DerivedF>
53 const std::string str,
54 const Eigen::MatrixBase<DerivedV>& V,
55 const Eigen::MatrixBase<DerivedF>& F);
62 template <typename DerivedV, typename T>
64 const std::string &str,
65 const Eigen::MatrixBase<DerivedV>& V,
66 const std::vector<std::vector<T> >& F);
67
68}
69
70#ifndef IGL_STATIC_LIBRARY
71# include "writeOBJ.cpp"
72#endif
73
74#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
bool writeOBJ(const std::string str, const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const Eigen::MatrixBase< DerivedCN > &CN, const Eigen::MatrixBase< DerivedFN > &FN, const Eigen::MatrixBase< DerivedTC > &TC, const Eigen::MatrixBase< DerivedFTC > &FTC)
Write a mesh in an ascii obj file.