8#ifndef model_MeshPlane_cpp_
9#define model_MeshPlane_cpp_
28 for(
const auto& incidence : face.perimeter)
31 incidence.source()->position,incidence.sink()->position,&face));
43 throw std::runtime_error(
"MeshPlane: Sorting MeshIntersections failed. temp.size()="+std::to_string(
temp.size()));
46 for(
const auto& seg :
temp)
48 if(seg->hasZeroLength())
50 throw std::runtime_error(
"Plane-Face intersection has zero length");
80 Plane<dim>(face.asPlane())
Class template representing a straight line at the intersection of PlanarMeshFaces.
MeshPlane(const SimplicialMesh< dim > &mesh, const size_t &rID, const VectorDim &p, const VectorDim &n)
const std::pair< int, int > regionIDs
static BoundingMeshSegments< dim > getFaceBoundary(const Polyhedron< dim, dim-1 > &face)
static void checkPlaneIntersections(const BoundingMeshSegments< dim > &temp)
const BoundingMeshSegments< dim > meshIntersections
Eigen::Matrix< double, dim, 1 > VectorDim
Plane(const VectorDim &p, const VectorDim &n)