Commit 7f645e02 authored by Alexandre Halbach's avatar Alexandre Halbach

Allow definition of quad with points

parent 8ce35bd6
......@@ -104,6 +104,21 @@ shape::shape(std::string shapename, int physreg, std::vector<shape> subshapes, i
abort();
}
shape::shape(std::string shapename, int physreg, std::vector<shape> subshapes, std::vector<int> nummeshpts)
{
// Get the rawshape pointer from all shapes:
std::vector<std::shared_ptr<rawshape>> subrawshapes = geotools::getrawshapes(subshapes);
if (shapename == "quadrangle")
{
rawshapeptr = std::shared_ptr<rawquadrangle>(new rawquadrangle(physreg, subrawshapes, nummeshpts));
return;
}
std::cout << "Error in 'shape' object: shape " << shapename << " does not accept this constructor or is unknown (try lower case)" << std::endl;
abort();
}
shape::shape(std::string shapename, int physreg, std::vector<shape> subshapes)
{
// Get the rawshape pointer from all shapes:
......
......@@ -51,6 +51,7 @@ class shape
// Constructor based on sub-shapes (not for point shapes):
shape(std::string shapename, int physreg, std::vector<shape> subshapes, int nummeshpts);
shape(std::string shapename, int physreg, std::vector<shape> subshapes, std::vector<int> nummeshpts);
shape(std::string shapename, int physreg, std::vector<shape> subshapes);
// Define a disk:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment