libigl v2.5.0
Loading...
Searching...
No Matches
writeSTL.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_WRITESTL_H
9#define IGL_WRITESTL_H
10#include "igl_inline.h"
11#include "FileEncoding.h"
12
13#ifndef IGL_NO_EIGEN
14# include <Eigen/Core>
15#endif
16#include <string>
17#include <vector>
18
19namespace igl
20{
32 template <typename DerivedV, typename DerivedF, typename DerivedN>
34 const std::string & filename,
35 const Eigen::MatrixBase<DerivedV> & V,
36 const Eigen::MatrixBase<DerivedF> & F,
37 const Eigen::MatrixBase<DerivedN> & N,
40 template <typename DerivedV, typename DerivedF>
42 const std::string & filename,
43 const Eigen::MatrixBase<DerivedV> & V,
44 const Eigen::MatrixBase<DerivedF> & F,
46}
47
48#ifndef IGL_STATIC_LIBRARY
49# include "writeSTL.cpp"
50#endif
51
52#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
bool writeSTL(const std::string &filename, const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const Eigen::MatrixBase< DerivedN > &N, FileEncoding encoding=FileEncoding::Ascii)
Write a mesh to an stl file.
FileEncoding
File encoding types for writing files.
Definition FileEncoding.h:14