[TD]fix location of CV on rotated views

This commit is contained in:
wandererfan
2023-12-22 11:12:10 -05:00
committed by WandererFan
parent 2fe19267df
commit e6517089df
12 changed files with 155 additions and 69 deletions

View File

@@ -402,11 +402,14 @@ DrawDimHelper::makeDistDim(DrawViewPart* dvp, std::string dimType,
std::vector<TechDraw::VertexPtr> gVerts = dvp->getVertexGeometry();
// invert the point so the math works correctly
Base::Vector3d cleanMin = DrawUtil::invertY(inMin);
cleanMin = CosmeticVertex::makeCanonicalPoint(dvp, cleanMin);
std::string tag1 = dvp->addCosmeticVertex(cleanMin);
int iGV1 = dvp->add1CVToGV(tag1);
Base::Vector3d cleanMax = DrawUtil::invertY(inMax);
cleanMax = CosmeticVertex::makeCanonicalPoint(dvp, cleanMax);
std::string tag2 = dvp->addCosmeticVertex(cleanMax);
int iGV2 = dvp->add1CVToGV(tag2);