Cannot display geometry lines in gui
Hi
I am trying make an all quad 2d surface that I can later revolve. I am working with the api with cpp.
I am getting strange behavior with the extruding boundary layers and over lapping mesh on the surface. I Want to see the lines created by the extrude process but they do not show after the extrusion process.
my code
gmsh::model::add("tissue");
gmsh::model::geo::addPoint(1.0,0.0,0.0, lc,1);
gmsh::model::geo::addPoint(1.0,1.0,0.0, lc,2);
gmsh::model::geo::addPoint(0.0,1.0,0.0, lc,3);
gmsh::model::geo::addPoint(0.0,0.0,0.0, lc,4);
std::vector<std::pair<int, int>> lines_tags; // = std::make_pair(2,5);
std::vector<std::pair<int, int>> boundary1_tags; // = std::make_pair(2,5);
std::vector<std::pair<int, int>> boundary2_tags; // = std::make_pair(2,5);
std::vector<std::pair<int, int>> boundary3_tags; // = std::make_pair(2,5);
std::vector<std::pair<int, int>> boundary4_tags; // = std::make_pair(2,5);
std::vector<std::pair<int, int>> boundary5_tags; // = std::make_pair(2,5);
int line;
int line_counter = 0;
line = gmsh::model::geo::addLine(2,1,-1);
lines_tags.push_back(std::make_pair(1,line));
std::cout << " Made line " << line << " \n";
gmsh::model::geo::extrudeBoundaryLayer({{1,1}},boundary1_tags,{1,1},{.25,.5},true,false);
std::cout << " Boundary layer tags size is " << boundary1_tags.size() << "\n";
for (auto i : boundary1_tags)
{
std::cout << " Bonundary Tag {" << i.first << "," << i.second << "} \n";
}
line_counter = boundary1_tags[boundary1_tags.size()-1].second;
line = gmsh::model::geo::addLine(3,2,-1);
std::cout << " Made line " << line << " \n";
gmsh::model::geo::extrudeBoundaryLayer({{1,line}},boundary2_tags,{1,1},{.25,.5},true,false);
line_counter = boundary2_tags[boundary2_tags.size()-1].second;
std::cout << " Boundary layer tags size is " << boundary2_tags.size() << "\n";
for (auto i : boundary2_tags)
{
std::cout << " Bonundary Tag {" << i.first << "," << i.second << "} \n";
}
line = gmsh::model::geo::addLine(4,3,-1);
std::cout << " Made line " << line << " \n";
gmsh::model::geo::extrudeBoundaryLayer({{1,line}},boundary3_tags,{1,1},{.25,.5},true,false);
line_counter = boundary3_tags[boundary3_tags.size()-1].second;
std::cout << " Boundary layer tags size is " << boundary3_tags.size() << "\n";
for (auto i : boundary3_tags)
{
std::cout << " Bonundary Tag {" << i.first << "," << i.second << "} \n";
}
line = gmsh::model::geo::addLine(1,4,-1);
std::cout << " Made line " << line << " \n";
gmsh::model::geo::extrudeBoundaryLayer({{1,line}},boundary4_tags,{1,1},{.25,.5},true,false);
line_counter = boundary4_tags[boundary4_tags.size()-1].second;
std::cout << " Boundary layer tags size is " << boundary4_tags.size() << "\n";
for (auto i : boundary4_tags)
{
std::cout << " Bonundary Tag {" << i.first << "," << i.second << "} \n";
}
int cl;
cl = gmsh::model::geo::addCurveLoop({14,11,7,8},-1,true);
int pl = gmsh::model::geo::addPlaneSurface({cl}, 1);
gmsh::model::geo::synchronize();
std::vector<std::pair<int, int>> ov2;
std::vector<std::pair<int, int>> ov;
gmsh::model::mesh::generate(2);
I need to know the lines created from the extrude process. I can display somethings in the gui like the created spaces but not the curves. Is this intended?
Thanks in advance.