[TD]draw line through 2 points

This commit is contained in:
wandererfan
2020-08-17 19:34:40 -04:00
committed by WandererFan
parent 1a6bbf8127
commit 1cad17c5f5
12 changed files with 1169 additions and 5 deletions

View File

@@ -1290,7 +1290,7 @@ void DrawViewPart::refreshCEGeoms(void)
std::vector<TechDraw::BaseGeom *> gEdges = getEdgeGeometry();
std::vector<TechDraw::BaseGeom *> oldGEdges;
for (auto& ge :gEdges) {
if (ge->getCosmeticTag().empty()) { //keep only non-ce edges
if (ge->source() != SourceType::COSEDGE) {
oldGEdges.push_back(ge);
}
}
@@ -1328,8 +1328,7 @@ void DrawViewPart::refreshCLGeoms(void)
std::vector<TechDraw::BaseGeom *> gEdges = getEdgeGeometry();
std::vector<TechDraw::BaseGeom *> newGEdges;
for (auto& ge :gEdges) {
//TODO: this will keep CE & CL
if (ge->getCosmeticTag().empty()) { //keep only non-cl edges
if (ge->source() != SourceType::CENTERLINE) {
newGEdges.push_back(ge);
}
}