add class `Simplicial_mesh_triangulation_3` to ease the use of C3t3

This commit is contained in:
Jane Tournois 2025-04-29 09:14:31 +02:00
parent 3c32fd118d
commit 90c3791221
4 changed files with 53 additions and 0 deletions

View File

@ -1,4 +1,5 @@
/*!
\example SMDS_3/c3t3_example.cpp
\example SMDS_3/c3t3_complete_example.cpp
\example SMDS_3/tetrahedron_soup_to_c3t3_example.cpp
*/

View File

@ -9,4 +9,5 @@ project(SMDS_3_Examples)
find_package(CGAL REQUIRED)
create_single_source_cgal_program("c3t3_example.cpp")
create_single_source_cgal_program("c3t3_complete_example.cpp")
create_single_source_cgal_program("tetrahedron_soup_to_c3t3_example.cpp")

View File

@ -0,0 +1,51 @@
// Copyright (c) 2006-2007 INRIA Sophia-Antipolis (France).
// Copyright (c) 2008,2011 GeometryFactory Sarl (France)
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : Laurent Rineau, Stephane Tayeb, Andreas Fabri, Jane Tournois
#ifndef CGAL_SIMPLICIAL_MESH_TRIANGULATION_3_H
#define CGAL_SIMPLICIAL_MESH_TRIANGULATION_3_H
#include <CGAL/license/SMDS_3.h>
#include <CGAL/Simplicial_mesh_vertex_base_3.h>
#include <CGAL/Simplicial_mesh_cell_base_3.h>
#include <CGAL/Triangulation_data_structure_3.h>
#include <CGAL/Triangulation_3.h>
namespace CGAL
{
/**
*\ingroup PkgSMDS3Classes
* `Simplicial_mesh_triangulation_3`
* @todo
*/
template<typename K,
typename SubdomainIndex = int,
typename SurfacePatchIndex = int,
typename CurveIndex = int,
typename CornerIndex = int>
class Simplicial_mesh_triangulation_3
: public CGAL::Triangulation_3<K,
CGAL::Triangulation_data_structure_3<
CGAL::Simplicial_mesh_vertex_base_3<K,
SubdomainIndex,
SurfacePatchIndex,
CurveIndex,
CornerIndex>,
CGAL::Simplicial_mesh_cell_base_3<K, SubdomainIndex, SurfacePatchIndex>,
CGAL::Sequential_tag>
>
{};
};
#endif // CGAL_SIMPLICIAL_MESH_TRIANGULATION_3_H