17#ifdef DEAL_II_WITH_OPENCASCADE
25# include <IGESControl_Controller.hxx>
26# include <IGESControl_Reader.hxx>
27# include <IGESControl_Writer.hxx>
28# include <STEPControl_Controller.hxx>
29# include <STEPControl_Reader.hxx>
30# include <STEPControl_Writer.hxx>
31# include <TopExp_Explorer.hxx>
33# include <TopoDS_Edge.hxx>
34# include <TopoDS_Face.hxx>
35# include <TopoDS_Shape.hxx>
39# if DEAL_II_OPENCASCADE_VERSION_GTE(7, 0, 0)
40# include <Standard_Transient.hxx>
42# include <Handle_Standard_Transient.hxx>
45# include <BRepAdaptor_Curve.hxx>
46# if DEAL_II_OPENCASCADE_VERSION_GTE(7, 6, 0)
47# include <BRepAlgoAPI_Section.hxx>
49# include <BRepAdaptor_HCompCurve.hxx>
50# include <BRepAdaptor_HCurve.hxx>
51# include <BRepAlgo_Section.hxx>
53# include <BRepAdaptor_Surface.hxx>
54# include <BRepBndLib.hxx>
55# include <BRepBuilderAPI_MakeEdge.hxx>
56# include <BRepBuilderAPI_Sewing.hxx>
57# include <BRepBuilderAPI_Transform.hxx>
58# include <BRepMesh_IncrementalMesh.hxx>
59# include <BRepTools.hxx>
60# include <BRep_Builder.hxx>
61# include <GCPnts_AbscissaPoint.hxx>
62# include <GeomAPI_Interpolate.hxx>
63# include <GeomAPI_ProjectPointOnCurve.hxx>
64# include <GeomAPI_ProjectPointOnSurf.hxx>
65# include <GeomConvert_CompCurveToBSplineCurve.hxx>
66# include <GeomLProp_SLProps.hxx>
67# include <Geom_BoundedCurve.hxx>
68# include <Geom_Plane.hxx>
69# include <IntCurvesFace_ShapeIntersector.hxx>
70# include <Poly_Triangulation.hxx>
71# include <ShapeAnalysis_Surface.hxx>
72# include <StlAPI_Reader.hxx>
73# include <StlAPI_Writer.hxx>
74# include <TColStd_HSequenceOfTransient.hxx>
75# include <TColStd_SequenceOfTransient.hxx>
76# include <TColgp_HArray1OfPnt.hxx>
77# include <TopLoc_Location.hxx>
92# ifdef DEAL_II_BUILDING_CXX20_MODULE
94# define Handle(ClassName) Handle_##ClassName
97 "Some OpenCASCADE header file is apparently included even when building modules!"
105#ifdef DEAL_II_WITH_OPENCASCADE
109 std::tuple<unsigned int, unsigned int, unsigned int>
113 unsigned int n_faces = 0, n_edges = 0, n_vertices = 0;
114 for (exp.Init(shape, TopAbs_FACE); exp.More(); exp.Next(), ++n_faces)
117 for (exp.Init(shape, TopAbs_EDGE); exp.More(); exp.Next(), ++n_edges)
120 for (exp.Init(shape, TopAbs_VERTEX); exp.More(); exp.Next(), ++n_vertices)
123 return std::tuple<unsigned int, unsigned int, unsigned int>(n_faces,
130 std::vector<TopoDS_Face> &faces,
131 std::vector<TopoDS_Edge> &edges,
132 std::vector<TopoDS_Vertex> &vertices)
139 for (exp.Init(shape, TopAbs_FACE); exp.More(); exp.Next())
141 faces.push_back(TopoDS::Face(exp.Current()));
143 for (exp.Init(shape, TopAbs_EDGE); exp.More(); exp.Next())
145 edges.push_back(TopoDS::Edge(exp.Current()));
147 for (exp.Init(shape, TopAbs_VERTEX); exp.More(); exp.Next())
149 vertices.push_back(TopoDS::Vertex(exp.Current()));
156 std::vector<TopoDS_Compound> &compounds,
157 std::vector<TopoDS_CompSolid> &compsolids,
158 std::vector<TopoDS_Solid> &solids,
159 std::vector<TopoDS_Shell> &shells,
160 std::vector<TopoDS_Wire> &wires)
163 compsolids.resize(0);
169 for (exp.Init(shape, TopAbs_COMPOUND); exp.More(); exp.Next())
171 compounds.push_back(TopoDS::Compound(exp.Current()));
173 for (exp.Init(shape, TopAbs_COMPSOLID); exp.More(); exp.Next())
175 compsolids.push_back(TopoDS::CompSolid(exp.Current()));
177 for (exp.Init(shape, TopAbs_SOLID); exp.More(); exp.Next())
179 solids.push_back(TopoDS::Solid(exp.Current()));
181 for (exp.Init(shape, TopAbs_SHELL); exp.More(); exp.Next())
183 shells.push_back(TopoDS::Shell(exp.Current()));
185 for (exp.Init(shape, TopAbs_WIRE); exp.More(); exp.Next())
187 wires.push_back(TopoDS::Wire(exp.Current()));
191 template <
int spacedim>
198 return gp_Pnt(p[0], 0, 0);
200 return gp_Pnt(p[0], p[1], 0);
202 return gp_Pnt(p[0], p[1], p[2]);
208 template <
int spacedim>
210 point(
const gp_Pnt &p,
const double tolerance)
218 "Cannot convert OpenCASCADE point to 1d if p.Y() != 0."));
221 "Cannot convert OpenCASCADE point to 1d if p.Z() != 0."));
226 "Cannot convert OpenCASCADE point to 2d if p.Z() != 0."));
240 const double tolerance)
242 const double rel_tol =
244 if (direction.
norm() > 0.0)
245 return (p1 * direction < p2 * direction - rel_tol);
247 for (
int d = dim; d >= 0; --d)
248 if (p1[d] < p2[d] - rel_tol)
250 else if (p2[d] < p1[d] - rel_tol)
260 read_IGES(
const std::string &filename,
const double scale_factor)
262 IGESControl_Reader reader;
263 IFSelect_ReturnStatus stat;
264 stat = reader.ReadFile(filename.c_str());
267 Standard_Boolean failsonly = Standard_False;
268 IFSelect_PrintCount mode = IFSelect_ItemsByEntity;
269 reader.PrintCheckLoad(failsonly, mode);
271 Standard_Integer nRoots = reader.TransferRoots();
280 scale.SetScale(Origin, scale_factor);
282 TopoDS_Shape sh = reader.OneShape();
283 BRepBuilderAPI_Transform trans(sh, scale);
285 return trans.Shape();
289 write_IGES(
const TopoDS_Shape &shape,
const std::string &filename)
291 IGESControl_Controller::Init();
292 IGESControl_Writer ICW(
"MM", 0);
293 Standard_Boolean ok = ICW.AddShape(shape);
296 Standard_Boolean OK = ICW.Write(filename.c_str());
304 StlAPI_Reader reader;
306 reader.Read(shape, filename.c_str());
313 const std::string &filename,
314 const double deflection,
315 const bool sew_different_faces,
316 const double sewer_tolerance,
317 const bool is_relative,
318 const double angular_deflection,
319 const bool in_parallel)
322 std::vector<TopoDS_Vertex> vertices;
323 std::vector<TopoDS_Edge> edges;
324 std::vector<TopoDS_Face> faces;
326 const bool mesh_is_present =
327 std::none_of(faces.begin(), faces.end(), [&Loc](
const TopoDS_Face &face) {
328 Handle(Poly_Triangulation) theTriangulation =
329 BRep_Tool::Triangulation(face, Loc);
330 return theTriangulation.IsNull();
332 TopoDS_Shape shape_to_be_written = shape;
333 if (!mesh_is_present)
335 if (sew_different_faces)
337 BRepBuilderAPI_Sewing sewer(sewer_tolerance);
338 sewer.Add(shape_to_be_written);
340 shape_to_be_written = sewer.SewedShape();
343 shape_to_be_written = shape;
347 BRepMesh_IncrementalMesh mesh_im(shape_to_be_written,
354 StlAPI_Writer writer;
356# if DEAL_II_OPENCASCADE_VERSION_GTE(6, 9, 0)
358 const auto error = writer.Write(shape_to_be_written, filename.c_str());
361# if !DEAL_II_OPENCASCADE_VERSION_GTE(7, 2, 0)
372 writer.Write(shape_to_be_written, filename.c_str());
377 read_STEP(
const std::string &filename,
const double scale_factor)
379 STEPControl_Reader reader;
380 IFSelect_ReturnStatus stat;
381 stat = reader.ReadFile(filename.c_str());
384 Standard_Boolean failsonly = Standard_False;
385 IFSelect_PrintCount mode = IFSelect_ItemsByEntity;
386 reader.PrintCheckLoad(failsonly, mode);
388 Standard_Integer nRoots = reader.TransferRoots();
397 scale.SetScale(Origin, scale_factor);
399 TopoDS_Shape sh = reader.OneShape();
400 BRepBuilderAPI_Transform trans(sh, scale);
402 return trans.Shape();
406 write_STEP(
const TopoDS_Shape &shape,
const std::string &filename)
408 STEPControl_Controller::Init();
409 STEPControl_Writer SCW;
410 IFSelect_ReturnStatus status;
411 status = SCW.Transfer(shape, STEPControl_AsIs);
413 ExcMessage(
"Failed to add shape to STEP controller."));
415 status = SCW.Write(filename.c_str());
418 ExcMessage(
"Failed to write translated shape to STEP file."));
424 double tolerance = 0.0;
426 std::vector<TopoDS_Face> faces;
427 std::vector<TopoDS_Edge> edges;
428 std::vector<TopoDS_Vertex> vertices;
432 for (
const auto &vertex : vertices)
433 tolerance = std::fmax(tolerance, BRep_Tool::Tolerance(vertex));
435 for (
const auto &edge : edges)
436 tolerance = std::fmax(tolerance, BRep_Tool::Tolerance(edge));
438 for (
const auto &face : faces)
439 tolerance = std::fmax(tolerance, BRep_Tool::Tolerance(face));
453 Handle(Geom_Plane) plane =
new Geom_Plane(c_x, c_y, c_z, c);
454# if DEAL_II_OPENCASCADE_VERSION_GTE(7, 6, 0)
455 BRepAlgoAPI_Section section(in_shape, plane);
457 BRepAlgo_Section section(in_shape, plane);
459 TopoDS_Shape edges = section.Shape();
464 join_edges(
const TopoDS_Shape &in_shape,
const double tolerance)
466 TopoDS_Edge out_shape;
467 const TopoDS_Shape &edges = in_shape;
468 std::vector<Handle_Geom_BoundedCurve> intersections;
472 gp_Pnt PIn(0.0, 0.0, 0.0);
473 gp_Pnt PFin(0.0, 0.0, 0.0);
474 gp_Pnt PMid(0.0, 0.0, 0.0);
475 TopExp_Explorer edgeExplorer(edges, TopAbs_EDGE);
477 while (edgeExplorer.More())
479 edge = TopoDS::Edge(edgeExplorer.Current());
480 Handle(Geom_Curve) curve = BRep_Tool::Curve(edge, L, First, Last);
481 intersections.push_back(Handle(Geom_BoundedCurve)::DownCast(curve));
487 unsigned int numIntersEdges = intersections.size();
490 GeomConvert_CompCurveToBSplineCurve convert_bspline(intersections[0]);
492 bool check =
false, one_added =
true, one_failed =
true;
493 std::vector<bool> added(numIntersEdges,
false);
495 while (one_added ==
true)
499 for (
unsigned int i = 1; i < numIntersEdges; ++i)
500 if (added[i] ==
false)
502 Handle(Geom_Curve) curve = intersections[i];
503 Handle(Geom_BoundedCurve) bcurve =
504 Handle(Geom_BoundedCurve)::DownCast(curve);
505 check = convert_bspline.Add(bcurve, tolerance,
false,
true, 0);
510 Handle(Geom_BoundedCurve) bcurve =
511 Handle(Geom_BoundedCurve)::DownCast(curve);
513 convert_bspline.Add(bcurve, tolerance,
false,
true, 0);
515 one_failed = one_failed || (check ==
false);
516 one_added = one_added || (check ==
true);
521 Assert(one_failed ==
false,
522 ExcMessage(
"Joining some of the Edges failed."));
524 Handle(Geom_Curve) bspline = convert_bspline.BSplineCurve();
526 out_shape = BRepBuilderAPI_MakeEdge(bspline);
535 const double tolerance)
539 gp_Pnt P0 =
point(origin);
542 dim > 1 ? direction[1] : 0,
543 dim > 2 ? direction[2] : 0));
547 gp_Pnt Pproj(0.0, 0.0, 0.0);
551 IntCurvesFace_ShapeIntersector Inters;
552 Inters.Load(in_shape, tolerance);
556 Inters.Perform(line, -RealLast(), +RealLast());
559 double minDistance = 1e7;
561 for (
int i = 0; i < Inters.NbPnt(); ++i)
563 const double distance =
point(origin).Distance(Inters.Pnt(i + 1));
566 if (distance < minDistance)
568 minDistance = distance;
569 result = point<dim>(Inters.Pnt(i + 1));
581 const double tolerance)
583 unsigned int n_vertices = curve_points.size();
585 if (direction * direction > 0)
587 std::sort(curve_points.begin(),
590 return OpenCASCADE::point_compare(p1,
598 Handle(TColgp_HArray1OfPnt) vertices =
599 new TColgp_HArray1OfPnt(1, n_vertices);
600 for (
unsigned int vertex = 0; vertex < n_vertices; ++vertex)
602 vertices->SetValue(vertex + 1,
point(curve_points[vertex]));
606 GeomAPI_Interpolate bspline_generator(vertices, closed, tolerance);
607 bspline_generator.Perform();
608 Assert((bspline_generator.IsDone()),
609 ExcMessage(
"Interpolated bspline generation failed"));
611 Handle(Geom_BSplineCurve) bspline = bspline_generator.Curve();
612 TopoDS_Edge out_shape = BRepBuilderAPI_MakeEdge(bspline);
613 out_shape.Closed(closed);
619 template <
int spacedim>
620 std::vector<TopoDS_Edge>
628 std::map<unsigned int, std::pair<unsigned int, unsigned int>> vert_to_faces;
629 std::map<unsigned int, std::pair<unsigned int, unsigned int>> face_to_verts;
630 std::map<unsigned int, bool> visited_faces;
631 std::map<unsigned int, Point<spacedim>> vert_to_point;
633 unsigned int face_index;
637 if (cell->face(f)->at_boundary())
640 face_index = cell->face(f)->index();
641 const unsigned int v0 = cell->face(f)->vertex_index(0);
642 const unsigned int v1 = cell->face(f)->vertex_index(1);
643 face_to_verts[face_index].first =
v0;
644 face_to_verts[face_index].second =
v1;
645 visited_faces[face_index] =
false;
650 f, 0,
true,
false,
false)];
652 f, 1,
true,
false,
false)];
655 if (vert_to_faces.find(
v0) == vert_to_faces.end())
657 vert_to_faces[
v0].first = face_index;
661 vert_to_faces[
v0].second = face_index;
663 if (vert_to_faces.find(
v1) == vert_to_faces.end())
665 vert_to_faces[
v1].first = face_index;
669 vert_to_faces[
v1].second = face_index;
675 std::vector<TopoDS_Edge> interpolation_curves;
676 bool finished = (face_to_verts.empty());
677 face_index = finished ? 0 : face_to_verts.begin()->first;
679 while (finished ==
false)
681 const unsigned int start_point_index = face_to_verts[face_index].first;
682 unsigned int point_index = start_point_index;
685 std::vector<Point<spacedim>> pointlist;
688 visited_faces[face_index] =
true;
689 auto current_point = vert_to_point[point_index];
690 pointlist.push_back(current_point);
693 if (face_to_verts[face_index].
first != point_index)
694 point_index = face_to_verts[face_index].first;
696 point_index = face_to_verts[face_index].second;
699 if (vert_to_faces[point_index].
first != face_index)
700 face_index = vert_to_faces[point_index].first;
702 face_index = vert_to_faces[point_index].second;
704 while (point_index != start_point_index);
706 interpolation_curves.push_back(
710 for (
const auto &f : visited_faces)
711 if (f.second ==
false)
713 face_index = f.first;
718 return interpolation_curves;
723 std::tuple<Point<dim>, TopoDS_Shape, double,
double>
726 const double tolerance)
729 gp_Pnt Pproj =
point(origin);
731 double minDistance = 1e7;
732 gp_Pnt tmp_proj(0.0, 0.0, 0.0);
734 unsigned int counter = 0;
735 unsigned int face_counter = 0;
737 TopoDS_Shape out_shape;
741 for (exp.Init(in_shape, TopAbs_FACE); exp.More(); exp.Next())
743 TopoDS_Face face = TopoDS::Face(exp.Current());
747 Handle(Geom_Surface) SurfToProj = BRep_Tool::Surface(face);
749 ShapeAnalysis_Surface projector(SurfToProj);
750 gp_Pnt2d proj_params = projector.ValueOfUV(
point(origin), tolerance);
752 SurfToProj->D0(proj_params.X(), proj_params.Y(), tmp_proj);
754 double distance = point<dim>(tmp_proj).distance(origin);
755 if (distance < minDistance)
757 minDistance = distance;
771 if (face_counter == 0)
772 for (exp.Init(in_shape, TopAbs_EDGE); exp.More(); exp.Next())
774 TopoDS_Edge edge = TopoDS::Edge(exp.Current());
775 if (!BRep_Tool::Degenerated(edge))
783 Handle(Geom_Curve) CurveToProj =
784 BRep_Tool::Curve(edge, L, First, Last);
786 GeomAPI_ProjectPointOnCurve Proj(
point(origin), CurveToProj);
787 unsigned int num_proj_points = Proj.NbPoints();
788 if ((num_proj_points > 0) && (Proj.LowerDistance() < minDistance))
790 minDistance = Proj.LowerDistance();
791 Pproj = Proj.NearestPoint();
793 u = Proj.LowerDistanceParameter();
800 return std::tuple<Point<dim>, TopoDS_Shape, double,
double>(
801 point<dim>(Pproj), out_shape, u, v);
809 const double tolerance)
811 std::tuple<Point<dim>, TopoDS_Shape, double,
double> ref =
813 return std::get<0>(ref);
819 const double tolerance)
822 std::tuple<Point<3>, TopoDS_Shape, double,
double> shape_and_params =
825 TopoDS_Shape &out_shape = std::get<1>(shape_and_params);
826 double &u = std::get<2>(shape_and_params);
827 double &v = std::get<3>(shape_and_params);
831 std::tuple<unsigned int, unsigned int, unsigned int>
numbers =
838 "Could not find normal: the shape containing the closest point has 0 faces."));
842 "Could not find normal: the shape containing the closest point has more than 1 face."));
846 exp.Init(out_shape, TopAbs_FACE);
847 TopoDS_Face face = TopoDS::Face(exp.Current());
853 push_forward(
const TopoDS_Shape &in_shape,
const double u,
const double v)
855 switch (in_shape.ShapeType())
859 BRepAdaptor_Surface surf(TopoDS::Face(in_shape));
860 return point<dim>(surf.Value(u, v));
864 BRepAdaptor_Curve curve(TopoDS::Edge(in_shape));
865 return point<dim>(curve.Value(u));
879 Handle(Geom_Surface) SurfToProj = BRep_Tool::Surface(face);
880 GeomLProp_SLProps props(SurfToProj, u, v, 1, 1e-7);
881 gp_Pnt Value = props.Value();
883 gp_Dir Normal = props.Normal();
884 Assert(props.IsCurvatureDefined(),
885 ExcMessage(
"Curvature is not well defined!"));
886 Standard_Real Min_Curvature = props.MinCurvature();
887 Standard_Real Max_Curvature = props.MaxCurvature();
894 if (face.Orientation() == TopAbs_REVERSED)
901 return std::tuple<Point<3>,
Tensor<1, 3>, double,
double>(point<3>(Value),
909 template <
int spacedim>
914 BRepAdaptor_Surface surf(face);
915 const double u0 = surf.FirstUParameter();
916 const double u1 = surf.LastUParameter();
917 const double v0 = surf.FirstVParameter();
918 const double v1 = surf.LastVParameter();
920 std::vector<CellData<2>> cells;
921 std::vector<Point<spacedim>> vertices;
924 vertices.push_back(point<spacedim>(surf.Value(u0,
v0)));
925 vertices.push_back(point<spacedim>(surf.Value(u1,
v0)));
926 vertices.push_back(point<spacedim>(surf.Value(u0,
v1)));
927 vertices.push_back(point<spacedim>(surf.Value(u1,
v1)));
930 for (
unsigned int i = 0; i < 4; ++i)
933 cells.push_back(cell);
942# include "opencascade/utilities.inst"
Abstract base class for mapping classes.
virtual boost::container::small_vector< Point< spacedim >, ReferenceCells::max_n_vertices< dim >() > 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
IteratorRange< active_cell_iterator > active_cell_iterators() const
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 > &)
std_cxx26::inplace_vector< unsigned int, ReferenceCells::max_n_vertices< structdim >()> 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)
static std_cxx20::ranges::iota_view< unsigned int, unsigned int > face_indices()