deal2lkit: A ToolKit library for Deal.II
assimp_interface.h
Go to the documentation of this file.
1
//-----------------------------------------------------------
2
//
3
// Copyright (C) 2015 by the deal2lkit authors
4
//
5
// This file is part of the deal2lkit library.
6
//
7
// The deal2lkit library is free software; you can use it, redistribute
8
// it, and/or modify it under the terms of the GNU Lesser General
9
// Public License as published by the Free Software Foundation; either
10
// version 2.1 of the License, or (at your option) any later version.
11
// The full text of the license can be found in the file LICENSE at
12
// the top level of the deal2lkit distribution.
13
//
14
//-----------------------------------------------------------
15
16
#ifndef _d2k_assimp_interface_h
17
#define _d2k_assimp_interface_h
18
19
#include <
deal.II/grid/tria.h
>
20
21
#include <deal2lkit/config.h>
22
23
using namespace
dealii
;
24
25
26
#ifdef D2K_WITH_ASSIMP
27
D2K_NAMESPACE_OPEN
28
namespace
AssimpInterface
29
{
30
53
template
<
int
dim,
int
spacedim>
54
bool
generate_triangulation
(
const
std::string filename,
55
Triangulation<dim,spacedim>
&tria,
56
int
mesh_index=-1,
57
bool
remove_duplicates=
true
,
58
double
tol = 1e-12);
59
60
}
61
D2K_NAMESPACE_CLOSE
62
#endif
63
64
#endif
Triangulation
tria.h
AssimpInterface::generate_triangulation
bool generate_triangulation(const std::string filename, Triangulation< dim, spacedim > &tria, int mesh_index, bool remove_duplicates, double tol)
Read in a file supported by Assimp, and generate a Triangulation out of it.
Definition:
assimp_interface.cc:55
AssimpInterface
Definition:
assimp_interface.cc:51
dealii
include
deal2lkit
assimp_interface.h
Generated on Thu Feb 23 2017 19:47:43 for deal2lkit: A ToolKit library for Deal.II by
1.8.12