Page MenuHomec4science

line_arc.hh
No OneTemporary

File Metadata

Created
Fri, May 3, 07:34

line_arc.hh

/**
* @file line_arc.hh
*
* @author Clement Roux <clement.roux@epfl.ch>
*
* @date creation: Fri Jan 04 2013
* @date last modification: Mon Jun 19 2017
*
* @brief Segment classe (geometry) for AABB CGAL algos
*
*
* Copyright (©) 2014-2018 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 "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