Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88809818
mesh_tree_constructor.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Oct 20, 19:22
Size
2 KB
Mime Type
text/x-c++
Expires
Tue, Oct 22, 19:22 (2 d)
Engine
blob
Format
Raw Data
Handle
21772005
Attached To
rAKA akantu
mesh_tree_constructor.hh
View Options
/**
* @file mesh_tree_constructor.hh
*
* @author Lucas Frérot <lucas.frerot@epfl.ch>
*
* @date creation: Thu Feb 26 2015
* @date last modification: Thu Feb 26 2015
*
* @brief Class for constructing the CGAL primitives of a mesh
*
* @section LICENSE
*
* Copyright (©) 2015 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* Akantu is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Akantu. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_MESH_TREE_CONSTRUCTOR_HH__
#define __AKANTU_MESH_TREE_CONSTRUCTOR_HH__
#include "aka_common.hh"
#include "mesh.hh"
#include "mesh_abstract_constructor.hh"
#include "tree_type_helper.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_AKANTU__
template
<
UInt
d
,
ElementType
el_type
>
class
MeshTreeConstructor
:
public
MeshAbstractConstructor
{
public
:
/// Construct from mesh
MeshTreeConstructor
(
const
Mesh
&
mesh
)
:
MeshAbstractConstructor
(
mesh
),
data_tree
(
NULL
),
primitive_list
()
{}
/// Desctructor
~
MeshTreeConstructor
();
public
:
/// Construct AABB tree for fast intersection computing
virtual
void
constructData
();
const
typename
TreeTypeHelper
<
d
,
el_type
>::
tree
&
getTree
()
const
{
return
*
data_tree
;
}
protected
:
typename
TreeTypeHelper
<
d
,
el_type
>::
tree
*
data_tree
;
typename
TreeTypeHelper
<
d
,
el_type
>::
container_type
primitive_list
;
};
__END_AKANTU__
#include "mesh_tree_constructor_tmpl.hh"
#endif
// __AKANTU_MESH_TREE_CONSTRUCTOR_HH__
Event Timeline
Log In to Comment