20#ifdef DEAL_II_WITH_OPENCASCADE
26# include <IGESControl_Controller.hxx>
27# include <IGESControl_Reader.hxx>
28# include <IGESControl_Writer.hxx>
29# include <STEPControl_Controller.hxx>
30# include <STEPControl_Reader.hxx>
31# include <STEPControl_Writer.hxx>
32# include <TopExp_Explorer.hxx>
34# include <TopoDS_Edge.hxx>
35# include <TopoDS_Face.hxx>
36# include <TopoDS_Shape.hxx>
41# if DEAL_II_OPENCASCADE_VERSION_GTE(7, 0, 0)
42# include <Standard_Transient.hxx>
44# include <Handle_Standard_Transient.hxx>
47# include <BRepAdaptor_Curve.hxx>
48# if DEAL_II_OPENCASCADE_VERSION_GTE(7, 6, 0)
49# include <BRepAlgoAPI_Section.hxx>
51# include <BRepAdaptor_HCompCurve.hxx>
52# include <BRepAdaptor_HCurve.hxx>
53# include <BRepAlgo_Section.hxx>
55# include <BRepAdaptor_Surface.hxx>
56# include <BRepBndLib.hxx>
57# include <BRepBuilderAPI_MakeEdge.hxx>
58# include <BRepBuilderAPI_Sewing.hxx>
59# include <BRepBuilderAPI_Transform.hxx>
60# include <BRepMesh_IncrementalMesh.hxx>
61# include <BRepTools.hxx>
62# include <BRep_Builder.hxx>
63# include <GCPnts_AbscissaPoint.hxx>
64# include <GeomAPI_Interpolate.hxx>
65# include <GeomAPI_ProjectPointOnCurve.hxx>
66# include <GeomAPI_ProjectPointOnSurf.hxx>
67# include <GeomConvert_CompCurveToBSplineCurve.hxx>
68# include <GeomLProp_SLProps.hxx>
69# include <Geom_BoundedCurve.hxx>
70# include <Geom_Plane.hxx>
71# include <IntCurvesFace_ShapeIntersector.hxx>
72# include <Poly_Triangulation.hxx>
73# include <ShapeAnalysis_Surface.hxx>
74# include <StlAPI_Reader.hxx>
75# include <StlAPI_Writer.hxx>
76# include <TColStd_HSequenceOfTransient.hxx>
77# include <TColStd_SequenceOfTransient.hxx>
78# include <TColgp_HArray1OfPnt.hxx>
79# include <TopLoc_Location.hxx>
92 std::tuple<unsigned int, unsigned int, unsigned int>
96 unsigned int n_faces = 0, n_edges = 0, n_vertices = 0;
97 for (exp.Init(shape, TopAbs_FACE); exp.More(); exp.Next(), ++n_faces)
99 for (exp.Init(shape, TopAbs_EDGE); exp.More(); exp.Next(), ++n_edges)
101 for (exp.Init(shape, TopAbs_VERTEX); exp.More(); exp.Next(), ++n_vertices)
103 return std::tuple<unsigned int, unsigned int, unsigned int>(n_faces,
110 std::vector<TopoDS_Face> & faces,
111 std::vector<TopoDS_Edge> & edges,
112 std::vector<TopoDS_Vertex> &
vertices)
119 for (exp.Init(shape, TopAbs_FACE); exp.More(); exp.Next())
121 faces.push_back(TopoDS::Face(exp.Current()));
123 for (exp.Init(shape, TopAbs_EDGE); exp.More(); exp.Next())
125 edges.push_back(TopoDS::Edge(exp.Current()));
127 for (exp.Init(shape, TopAbs_VERTEX); exp.More(); exp.Next())
129 vertices.push_back(TopoDS::Vertex(exp.Current()));
136 std::vector<TopoDS_Compound> & compounds,
137 std::vector<TopoDS_CompSolid> &compsolids,
138 std::vector<TopoDS_Solid> & solids,
139 std::vector<TopoDS_Shell> & shells,
140 std::vector<TopoDS_Wire> & wires)
143 compsolids.resize(0);
149 for (exp.Init(shape, TopAbs_COMPOUND); exp.More(); exp.Next())
151 compounds.push_back(TopoDS::Compound(exp.Current()));
153 for (exp.Init(shape, TopAbs_COMPSOLID); exp.More(); exp.Next())
155 compsolids.push_back(TopoDS::CompSolid(exp.Current()));
157 for (exp.Init(shape, TopAbs_SOLID); exp.More(); exp.Next())
159 solids.push_back(TopoDS::Solid(exp.Current()));
161 for (exp.Init(shape, TopAbs_SHELL); exp.More(); exp.Next())
163 shells.push_back(TopoDS::Shell(exp.Current()));
165 for (exp.Init(shape, TopAbs_WIRE); exp.More(); exp.Next())
167 wires.push_back(TopoDS::Wire(exp.Current()));
171 template <
int spacedim>
178 return gp_Pnt(p[0], 0, 0);
180 return gp_Pnt(p[0], p[1], 0);
182 return gp_Pnt(p[0], p[1], p[2]);
188 template <
int spacedim>
190 point(
const gp_Pnt &p,
const double tolerance)
198 "Cannot convert OpenCASCADE point to 1d if p.Y() != 0."));
201 "Cannot convert OpenCASCADE point to 1d if p.Z() != 0."));
206 "Cannot convert OpenCASCADE point to 2d if p.Z() != 0."));
220 const double tolerance)
222 const double rel_tol =
224 if (direction.
norm() > 0.0)
225 return (p1 * direction < p2 * direction - rel_tol);
227 for (
int d = dim; d >= 0; --d)
228 if (p1[d] < p2[d] - rel_tol)
230 else if (p2[d] < p1[d] - rel_tol)
240 read_IGES(
const std::string &filename,
const double scale_factor)
242 IGESControl_Reader reader;
243 IFSelect_ReturnStatus stat;
244 stat = reader.ReadFile(filename.c_str());
247 Standard_Boolean failsonly = Standard_False;
248 IFSelect_PrintCount mode = IFSelect_ItemsByEntity;
249 reader.PrintCheckLoad(failsonly, mode);
251 Standard_Integer nRoots = reader.TransferRoots();
260 scale.SetScale(Origin, scale_factor);
262 TopoDS_Shape sh = reader.OneShape();
263 BRepBuilderAPI_Transform trans(sh, scale);
265 return trans.Shape();
269 write_IGES(
const TopoDS_Shape &shape,
const std::string &filename)
271 IGESControl_Controller::Init();
272 IGESControl_Writer ICW(
"MM", 0);
273 Standard_Boolean ok = ICW.AddShape(shape);
276 Standard_Boolean OK = ICW.Write(filename.c_str());
284 StlAPI_Reader reader;
286 reader.Read(shape, filename.c_str());
293 const std::string & filename,
294 const double deflection,
295 const bool sew_different_faces,
296 const double sewer_tolerance,
297 const bool is_relative,
298 const double angular_deflection,
299 const bool in_parallel)
302 std::vector<TopoDS_Vertex>
vertices;
303 std::vector<TopoDS_Edge> edges;
304 std::vector<TopoDS_Face> faces;
306 const bool mesh_is_present =
307 std::none_of(faces.begin(), faces.end(), [&Loc](
const TopoDS_Face &face) {
308 Handle(Poly_Triangulation) theTriangulation =
309 BRep_Tool::Triangulation(face, Loc);
310 return theTriangulation.IsNull();
312 TopoDS_Shape shape_to_be_written = shape;
313 if (!mesh_is_present)
315 if (sew_different_faces)
317 BRepBuilderAPI_Sewing sewer(sewer_tolerance);
318 sewer.Add(shape_to_be_written);
320 shape_to_be_written = sewer.SewedShape();
323 shape_to_be_written = shape;
327 BRepMesh_IncrementalMesh mesh_im(shape_to_be_written,
334 StlAPI_Writer writer;
336# if DEAL_II_OPENCASCADE_VERSION_GTE(6, 9, 0)
338 const auto error = writer.Write(shape_to_be_written, filename.c_str());
341# if !DEAL_II_OPENCASCADE_VERSION_GTE(7, 2, 0)
352 writer.Write(shape_to_be_written, filename.c_str());
357 read_STEP(
const std::string &filename,
const double scale_factor)
359 STEPControl_Reader reader;
360 IFSelect_ReturnStatus stat;
361 stat = reader.ReadFile(filename.c_str());
364 Standard_Boolean failsonly = Standard_False;
365 IFSelect_PrintCount mode = IFSelect_ItemsByEntity;
366 reader.PrintCheckLoad(failsonly, mode);
368 Standard_Integer nRoots = reader.TransferRoots();
377 scale.SetScale(Origin, scale_factor);
379 TopoDS_Shape sh = reader.OneShape();
380 BRepBuilderAPI_Transform trans(sh, scale);
382 return trans.Shape();
386 write_STEP(
const TopoDS_Shape &shape,
const std::string &filename)
388 STEPControl_Controller::Init();
389 STEPControl_Writer SCW;
390 IFSelect_ReturnStatus status;
391 status = SCW.Transfer(shape, STEPControl_AsIs);
393 ExcMessage(
"Failed to add shape to STEP controller."));
395 status = SCW.Write(filename.c_str());
398 ExcMessage(
"Failed to write translated shape to STEP file."));
404 double tolerance = 0.0;
406 std::vector<TopoDS_Face> faces;
407 std::vector<TopoDS_Edge> edges;
408 std::vector<TopoDS_Vertex>
vertices;
413 tolerance = std::fmax(tolerance, BRep_Tool::Tolerance(vertex));
415 for (
const auto &edge : edges)
416 tolerance = std::fmax(tolerance, BRep_Tool::Tolerance(edge));
418 for (
const auto &face : faces)
419 tolerance = std::fmax(tolerance, BRep_Tool::Tolerance(face));
433 Handle(Geom_Plane) plane =
new Geom_Plane(c_x, c_y, c_z, c);
434# if DEAL_II_OPENCASCADE_VERSION_GTE(7, 6, 0)
435 BRepAlgoAPI_Section section(in_shape, plane);
437 BRepAlgo_Section section(in_shape, plane);
439 TopoDS_Shape edges = section.Shape();
444 join_edges(
const TopoDS_Shape &in_shape,
const double tolerance)
446 TopoDS_Edge out_shape;
447 const TopoDS_Shape & edges = in_shape;
448 std::vector<Handle_Geom_BoundedCurve> intersections;
452 gp_Pnt PIn(0.0, 0.0, 0.0);
453 gp_Pnt PFin(0.0, 0.0, 0.0);
454 gp_Pnt PMid(0.0, 0.0, 0.0);
455 TopExp_Explorer edgeExplorer(edges, TopAbs_EDGE);
457 while (edgeExplorer.More())
459 edge = TopoDS::Edge(edgeExplorer.Current());
460 Handle(Geom_Curve) curve = BRep_Tool::Curve(edge, L, First, Last);
461 intersections.push_back(Handle(Geom_BoundedCurve)::DownCast(curve));
467 unsigned int numIntersEdges = intersections.size();
470 GeomConvert_CompCurveToBSplineCurve convert_bspline(intersections[0]);
472 bool check =
false, one_added =
true, one_failed =
true;
473 std::vector<bool> added(numIntersEdges,
false);
475 while (one_added ==
true)
479 for (
unsigned int i = 1; i < numIntersEdges; ++i)
480 if (added[i] ==
false)
482 Handle(Geom_Curve) curve = intersections[i];
483 Handle(Geom_BoundedCurve) bcurve =
484 Handle(Geom_BoundedCurve)::DownCast(curve);
485 check = convert_bspline.Add(bcurve, tolerance,
false,
true, 0);
490 Handle(Geom_BoundedCurve) bcurve =
491 Handle(Geom_BoundedCurve)::DownCast(curve);
493 convert_bspline.Add(bcurve, tolerance,
false,
true, 0);
495 one_failed = one_failed || (check ==
false);
496 one_added = one_added || (check ==
true);
501 Assert(one_failed ==
false,
502 ExcMessage(
"Joining some of the Edges failed."));
504 Handle(Geom_Curve) bspline = convert_bspline.BSplineCurve();
506 out_shape = BRepBuilderAPI_MakeEdge(bspline);
515 const double tolerance)
519 gp_Pnt P0 =
point(origin);
522 dim > 1 ? direction[1] : 0,
523 dim > 2 ? direction[2] : 0));
527 gp_Pnt Pproj(0.0, 0.0, 0.0);
531 IntCurvesFace_ShapeIntersector Inters;
532 Inters.Load(in_shape, tolerance);
536 Inters.Perform(line, -RealLast(), +RealLast());
539 double minDistance = 1e7;
541 for (
int i = 0; i < Inters.NbPnt(); ++i)
543 const double distance =
point(origin).Distance(Inters.Pnt(i + 1));
546 if (distance < minDistance)
548 minDistance = distance;
549 result = point<dim>(Inters.Pnt(i + 1));
561 const double tolerance)
563 unsigned int n_vertices = curve_points.size();
565 if (direction * direction > 0)
567 std::sort(curve_points.begin(),
570 return OpenCASCADE::point_compare(p1,
578 Handle(TColgp_HArray1OfPnt)
vertices =
579 new TColgp_HArray1OfPnt(1, n_vertices);
580 for (
unsigned int vertex = 0; vertex < n_vertices; ++vertex)
586 GeomAPI_Interpolate bspline_generator(
vertices, closed, tolerance);
587 bspline_generator.Perform();
588 Assert((bspline_generator.IsDone()),
589 ExcMessage(
"Interpolated bspline generation failed"));
591 Handle(Geom_BSplineCurve) bspline = bspline_generator.Curve();
592 TopoDS_Edge out_shape = BRepBuilderAPI_MakeEdge(bspline);
593 out_shape.Closed(closed);
599 template <
int spacedim>
600 std::vector<TopoDS_Edge>
608 std::map<unsigned int, std::pair<unsigned int, unsigned int>> vert_to_faces;
609 std::map<unsigned int, std::pair<unsigned int, unsigned int>> face_to_verts;
610 std::map<unsigned int, bool> visited_faces;
611 std::map<unsigned int, Point<spacedim>> vert_to_point;
613 unsigned int face_index;
615 for (
const auto &cell :
triangulation.active_cell_iterators())
617 if (cell->face(f)->at_boundary())
620 face_index = cell->face(f)->index();
621 const unsigned int v0 = cell->face(f)->vertex_index(0);
622 const unsigned int v1 = cell->face(f)->vertex_index(1);
623 face_to_verts[face_index].first =
v0;
624 face_to_verts[face_index].second =
v1;
625 visited_faces[face_index] =
false;
630 f, 0,
true,
false,
false)];
632 f, 1,
true,
false,
false)];
635 if (vert_to_faces.find(
v0) == vert_to_faces.end())
637 vert_to_faces[
v0].first = face_index;
641 vert_to_faces[
v0].second = face_index;
643 if (vert_to_faces.find(
v1) == vert_to_faces.end())
645 vert_to_faces[
v1].first = face_index;
649 vert_to_faces[
v1].second = face_index;
655 std::vector<TopoDS_Edge> interpolation_curves;
656 bool finished = (face_to_verts.size() == 0);
657 face_index = finished ? 0 : face_to_verts.begin()->first;
659 while (finished ==
false)
661 const unsigned int start_point_index = face_to_verts[face_index].first;
662 unsigned int point_index = start_point_index;
665 std::vector<Point<spacedim>> pointlist;
668 visited_faces[face_index] =
true;
669 auto current_point = vert_to_point[point_index];
670 pointlist.push_back(current_point);
673 if (face_to_verts[face_index].
first != point_index)
674 point_index = face_to_verts[face_index].first;
676 point_index = face_to_verts[face_index].second;
679 if (vert_to_faces[point_index].
first != face_index)
680 face_index = vert_to_faces[point_index].first;
682 face_index = vert_to_faces[point_index].second;
684 while (point_index != start_point_index);
686 interpolation_curves.push_back(
690 for (
const auto &f : visited_faces)
691 if (f.second ==
false)
693 face_index = f.first;
698 return interpolation_curves;
703 std::tuple<Point<dim>, TopoDS_Shape, double,
double>
706 const double tolerance)
709 gp_Pnt Pproj =
point(origin);
711 double minDistance = 1e7;
712 gp_Pnt tmp_proj(0.0, 0.0, 0.0);
714 unsigned int counter = 0;
715 unsigned int face_counter = 0;
717 TopoDS_Shape out_shape;
721 for (exp.Init(in_shape, TopAbs_FACE); exp.More(); exp.Next())
723 TopoDS_Face face = TopoDS::Face(exp.Current());
727 Handle(Geom_Surface) SurfToProj = BRep_Tool::Surface(face);
729 ShapeAnalysis_Surface projector(SurfToProj);
730 gp_Pnt2d proj_params = projector.ValueOfUV(
point(origin), tolerance);
732 SurfToProj->D0(proj_params.X(), proj_params.Y(), tmp_proj);
734 double distance = point<dim>(tmp_proj).distance(origin);
735 if (distance < minDistance)
737 minDistance = distance;
751 if (face_counter == 0)
752 for (exp.Init(in_shape, TopAbs_EDGE); exp.More(); exp.Next())
754 TopoDS_Edge edge = TopoDS::Edge(exp.Current());
755 if (!BRep_Tool::Degenerated(edge))
763 Handle(Geom_Curve) CurveToProj =
764 BRep_Tool::Curve(edge, L, First, Last);
766 GeomAPI_ProjectPointOnCurve Proj(
point(origin), CurveToProj);
767 unsigned int num_proj_points = Proj.NbPoints();
768 if ((num_proj_points > 0) && (Proj.LowerDistance() < minDistance))
770 minDistance = Proj.LowerDistance();
771 Pproj = Proj.NearestPoint();
773 u = Proj.LowerDistanceParameter();
780 return std::tuple<Point<dim>, TopoDS_Shape, double,
double>(
781 point<dim>(Pproj), out_shape, u, v);
789 const double tolerance)
791 std::tuple<Point<dim>, TopoDS_Shape, double,
double> ref =
793 return std::get<0>(ref);
799 const double tolerance)
802 std::tuple<Point<3>, TopoDS_Shape, double,
double> shape_and_params =
805 TopoDS_Shape &out_shape = std::get<1>(shape_and_params);
806 double & u = std::get<2>(shape_and_params);
807 double & v = std::get<3>(shape_and_params);
811 std::tuple<unsigned int, unsigned int, unsigned int>
numbers =
818 "Could not find normal: the shape containing the closest point has 0 faces."));
822 "Could not find normal: the shape containing the closest point has more than 1 face."));
826 exp.Init(out_shape, TopAbs_FACE);
827 TopoDS_Face face = TopoDS::Face(exp.Current());
833 push_forward(
const TopoDS_Shape &in_shape,
const double u,
const double v)
835 switch (in_shape.ShapeType())
839 BRepAdaptor_Surface surf(TopoDS::Face(in_shape));
840 return point<dim>(surf.Value(u, v));
844 BRepAdaptor_Curve curve(TopoDS::Edge(in_shape));
845 return point<dim>(curve.Value(u));
859 Handle(Geom_Surface) SurfToProj = BRep_Tool::Surface(face);
860 GeomLProp_SLProps props(SurfToProj, u, v, 1, 1e-7);
861 gp_Pnt Value = props.Value();
863 gp_Dir Normal = props.Normal();
864 Assert(props.IsCurvatureDefined(),
865 ExcMessage(
"Curvature is not well defined!"));
866 Standard_Real Min_Curvature = props.MinCurvature();
867 Standard_Real Max_Curvature = props.MaxCurvature();
874 if (face.Orientation() == TopAbs_REVERSED)
881 return std::tuple<Point<3>,
Tensor<1, 3>, double,
double>(point<3>(Value),
889 template <
int spacedim>
894 BRepAdaptor_Surface surf(face);
895 const double u0 = surf.FirstUParameter();
896 const double u1 = surf.LastUParameter();
897 const double v0 = surf.FirstVParameter();
898 const double v1 = surf.LastVParameter();
900 std::vector<CellData<2>> cells;
901 std::vector<Point<spacedim>>
vertices;
904 vertices.push_back(point<spacedim>(surf.Value(u0,
v0)));
905 vertices.push_back(point<spacedim>(surf.Value(u1,
v0)));
906 vertices.push_back(point<spacedim>(surf.Value(u0,
v1)));
907 vertices.push_back(point<spacedim>(surf.Value(u1,
v1)));
910 for (
unsigned int i = 0; i < 4; ++i)
913 cells.push_back(cell);
917# include "utilities.inst"
Abstract base class for mapping classes.
virtual boost::container::small_vector< Point< spacedim >, GeometryInfo< dim >::vertices_per_cell > get_vertices(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
numbers::NumberTraits< Number >::real_type norm() const
virtual void create_triangulation(const std::vector< Point< spacedim > > &vertices, const std::vector< CellData< dim > > &cells, const SubCellData &subcelldata)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
static ::ExceptionBase & ExcUnsupportedShape()
static ::ExceptionBase & ExcMessage(std::string arg1)
#define AssertThrow(cond, exc)
TopoDS_Edge interpolation_curve(std::vector< Point< dim > > &curve_points, const Tensor< 1, dim > &direction=Tensor< 1, dim >(), const bool closed=false, const double tolerance=1e-7)
std::tuple< Point< 3 >, Tensor< 1, 3 >, double, double > push_forward_and_differential_forms(const TopoDS_Face &face, const double u, const double v, const double tolerance=1e-7)
void extract_compound_shapes(const TopoDS_Shape &shape, std::vector< TopoDS_Compound > &compounds, std::vector< TopoDS_CompSolid > &compsolids, std::vector< TopoDS_Solid > &solids, std::vector< TopoDS_Shell > &shells, std::vector< TopoDS_Wire > &wires)
Point< dim > push_forward(const TopoDS_Shape &in_shape, const double u, const double v)
std::tuple< unsigned int, unsigned int, unsigned int > count_elements(const TopoDS_Shape &shape)
void write_STEP(const TopoDS_Shape &shape, const std::string &filename)
std::tuple< Point< 3 >, Tensor< 1, 3 >, double, double > closest_point_and_differential_forms(const TopoDS_Shape &in_shape, const Point< 3 > &origin, const double tolerance=1e-7)
void extract_geometrical_shapes(const TopoDS_Shape &shape, std::vector< TopoDS_Face > &faces, std::vector< TopoDS_Edge > &edges, std::vector< TopoDS_Vertex > &vertices)
TopoDS_Edge join_edges(const TopoDS_Shape &in_shape, const double tolerance=1e-7)
TopoDS_Shape read_STEP(const std::string &filename, const double scale_factor=1e-3)
bool point_compare(const Point< dim > &p1, const Point< dim > &p2, const Tensor< 1, dim > &direction=Tensor< 1, dim >(), const double tolerance=1e-10)
Point< spacedim > point(const gp_Pnt &p, const double tolerance=1e-10)
Point< dim > closest_point(const TopoDS_Shape &in_shape, const Point< dim > &origin, const double tolerance=1e-7)
std::tuple< Point< dim >, TopoDS_Shape, double, double > project_point_and_pull_back(const TopoDS_Shape &in_shape, const Point< dim > &origin, const double tolerance=1e-7)
Point< dim > line_intersection(const TopoDS_Shape &in_shape, const Point< dim > &origin, const Tensor< 1, dim > &direction, const double tolerance=1e-7)
void write_STL(const TopoDS_Shape &shape, const std::string &filename, const double deflection, const bool sew_different_faces=false, const double sewer_tolerance=1e-6, const bool is_relative=false, const double angular_deflection=0.5, const bool in_parallel=false)
void create_triangulation(const TopoDS_Face &face, Triangulation< 2, spacedim > &tria)
TopoDS_Shape read_STL(const std::string &filename)
TopoDS_Shape intersect_plane(const TopoDS_Shape &in_shape, const double c_x, const double c_y, const double c_z, const double c, const double tolerance=1e-7)
std::vector< TopoDS_Edge > create_curves_from_triangulation_boundary(const Triangulation< 2, spacedim > &triangulation, const Mapping< 2, spacedim > &mapping=StaticMappingQ1< 2, spacedim >::mapping)
double get_shape_tolerance(const TopoDS_Shape &shape)
void write_IGES(const TopoDS_Shape &shape, const std::string &filename)
TopoDS_Shape read_IGES(const std::string &filename, const double scale_factor=1e-3)
::VectorizedArray< Number, width > max(const ::VectorizedArray< Number, width > &, const ::VectorizedArray< Number, width > &)
::VectorizedArray< Number, width > abs(const ::VectorizedArray< Number, width > &)
const ::parallel::distributed::Triangulation< dim, spacedim > * triangulation
std::vector< unsigned int > vertices
static unsigned int face_to_cell_vertices(const unsigned int face, const unsigned int vertex, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false)
const ::Triangulation< dim, spacedim > & tria