Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91398206
line_arc.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, Nov 10, 17:40
Size
2 KB
Mime Type
text/x-c++
Expires
Tue, Nov 12, 17:40 (2 d)
Engine
blob
Format
Raw Data
Handle
22063326
Attached To
rAKA akantu
line_arc.hh
View Options
/**
* @file line_arc.hh
*
* @author Clement Roux <clement.roux@epfl.ch>
*
* @date creation: Fri Jan 04 2013
* @date last modification: Thu Jan 14 2016
*
* @brief Segment classe (geometry) for AABB CGAL algos
*
* @section LICENSE
*
* Copyright (©) 2014, 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_LINE_ARC_HH__
#define __AKANTU_LINE_ARC_HH__
#include "aka_common.hh"
#include "mesh_geom_common.hh"
__BEGIN_AKANTU__
/* -------------------------------------------------------------------------- */
/// Class used for substitution of CGAL::Triangle_3 primitive
template
<
typename
K
>
class
Line_arc
:
public
CGAL
::
Line_arc_3
<
K
>
{
public
:
/// Default constructor
Line_arc
()
:
CGAL
::
Line_arc_3
<
K
>
(),
mesh_id
(
0
),
seg_id
(
0
)
{}
/// Copy constructor
Line_arc
(
const
Line_arc
&
other
)
:
CGAL
::
Line_arc_3
<
K
>
(
other
),
mesh_id
(
other
.
mesh_id
),
seg_id
(
other
.
seg_id
)
{}
/// Construct from 3 points
// "CGAL-4.5/doc_html/Circular_kernel_3/classCGAL_1_1Line__arc__3.html"
Line_arc
(
const
CGAL
::
Line_3
<
K
>
&
l
,
const
CGAL
::
Circular_arc_point_3
<
K
>
&
a
,
const
CGAL
::
Circular_arc_point_3
<
K
>
&
b
)
:
CGAL
::
Line_arc_3
<
K
>
(
l
,
a
,
b
),
mesh_id
(
0
),
seg_id
(
0
)
{}
public
:
UInt
id
()
const
{
return
mesh_id
;
}
UInt
segId
()
const
{
return
seg_id
;
}
void
setId
(
UInt
newId
)
{
mesh_id
=
newId
;
}
void
setSegId
(
UInt
newId
)
{
seg_id
=
newId
;
}
protected
:
/// Id of the element represented by the primitive
UInt
mesh_id
;
/// Id of the segment represented by the primitive
UInt
seg_id
;
};
__END_AKANTU__
#endif
// __AKANTU_LINE_ARC_HH__
Event Timeline
Log In to Comment