Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79095028
test_geometry_intersection_tetrahedron_4.cc
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
Sat, Aug 24, 17:46
Size
2 KB
Mime Type
text/x-c
Expires
Mon, Aug 26, 17:46 (2 d)
Engine
blob
Format
Raw Data
Handle
20111803
Attached To
rAKA akantu
test_geometry_intersection_tetrahedron_4.cc
View Options
/**
* @file test_geometry_intersection_tetrahedron_4.cc
*
* @author Lucas Frérot <lucas.frerot@epfl.ch>
*
* @date creation: Thu Mar 26 2015
* @date last modification: Thu Mar 26 2015
*
* @brief Tests the intersection module with _tetrahedron_4 elements
*
* @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/>.
*
*/
/* -------------------------------------------------------------------------- */
#include "aka_common.hh"
#include "mesh_geom_container.hh"
#include "mesh_geom_factory.hh"
#include "tree_type_helper.hh"
#include "geom_helper_functions.hh"
#include <CGAL/Cartesian.h>
#include <iostream>
/* -------------------------------------------------------------------------- */
using
namespace
akantu
;
typedef
CGAL
::
Cartesian
<
Real
>
K
;
typedef
K
::
Point_3
Point
;
typedef
K
::
Segment_3
Segment
;
/* -------------------------------------------------------------------------- */
int
main
(
int
argc
,
char
*
argv
[])
{
debug
::
setDebugLevel
(
dblWarning
);
initialize
(
""
,
argc
,
argv
);
Mesh
mesh
(
3
);
mesh
.
read
(
"tetrahedron_4.msh"
);
MeshGeomContainer
container
(
mesh
);
container
.
constructData
();
Point
point
(
1.
,
1.
,
1.
);
Segment
segment
(
CGAL
::
ORIGIN
,
point
);
std
::
list
<
std
::
pair
<
Segment
,
std
::
string
>
>
interfaces
;
interfaces
.
push_back
(
std
::
make_pair
(
segment
,
"mat"
));
Mesh
&
interface_mesh
=
container
.
meshOfLinearInterfaces
(
interfaces
);
if
(
interface_mesh
.
getNbElement
(
_segment_2
)
!=
4
)
return
EXIT_FAILURE
;
return
EXIT_SUCCESS
;
}
Event Timeline
Log In to Comment