Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94921821
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
Wed, Dec 11, 10:24
Size
2 KB
Mime Type
text/x-c++
Expires
Fri, Dec 13, 10:24 (2 d)
Engine
blob
Format
Raw Data
Handle
22713560
Attached To
rAKA akantu
line_arc.hh
View Options
/**
* Copyright (©) 2013-2023 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* This file is part of Akantu
*
* 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 "mesh_geom_common.hh"
/* -------------------------------------------------------------------------- */
#ifndef AKANTU_LINE_ARC_HH_
#define AKANTU_LINE_ARC_HH_
namespace
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
>
()
{}
/// 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
)
{}
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
{
0
};
/// Id of the segment represented by the primitive
UInt
seg_id
{
0
};
};
}
// namespace akantu
#endif
// AKANTU_LINE_ARC_HH_
Event Timeline
Log In to Comment