Show full width Edges around Section Face

- Section Face was hidding 1/2 of Edge if "Show Section
  Edges" was set to false.
This commit is contained in:
wandererfan
2018-09-15 14:13:37 -04:00
committed by wmayer
parent 1c646c9488
commit 6cb7255c30
2 changed files with 7 additions and 2 deletions

View File

@@ -80,6 +80,9 @@ void QGIViewSection::drawSectionFace()
return;
}
float lineWidth = sectionVp->LineWidth.getValue();
auto sectionFaces( section->getFaceGeometry() );
if (sectionFaces.empty()) {
//Base::Console().Log("INFO - QGIViewSection::drawSectionFace - No sectionFaces available. Check Section plane.\n");
@@ -94,6 +97,8 @@ void QGIViewSection::drawSectionFace()
newFace->setZValue(ZVALUE::SECTIONFACE);
if (section->showSectionEdges()) {
newFace->setDrawEdges(true);
newFace->setStyle(Qt::SolidLine);
newFace->setWidth(lineWidth);
} else {
newFace->setDrawEdges(false);
}

View File

@@ -8,10 +8,10 @@ namespace ZVALUE {
const int FACE = 10;
const int HATCH = 30;
const int HIDEDGE = 40;
const int SECTIONFACE = 45;
const int SECTIONHATCH = 46;
const int EDGE = 50;
const int VERTEX = 60;
const int SECTIONFACE = 65;
const int SECTIONHATCH = 66;
const int DIMENSION = 110;
const int SECTIONLINE = 80; //TODO: change to "DECORATION"? section lines, symmetry lines, etc?
const int HIGHLIGHT = 80;