[TD]Section Line position

This commit is contained in:
wandererfan
2019-11-23 14:14:06 -05:00
committed by WandererFan
parent 54d9e04304
commit acc7686b83
3 changed files with 9 additions and 9 deletions

View File

@@ -328,6 +328,7 @@ GeometryObject* DrawViewPart::makeGeometryForShape(TopoDS_Shape shape)
//center shape on origin
TopoDS_Shape centeredShape = TechDraw::moveShape(shape,
centroid * -1.0);
m_saveCentroid = centroid;
m_saveShape = centeredShape;
TopoDS_Shape scaledShape = TechDraw::scaleShape(centeredShape,
@@ -792,12 +793,10 @@ gp_Ax2 DrawViewPart::getViewAxis(const Base::Vector3d& pt,
}
//TODO: make saveShape a property
Base::Vector3d DrawViewPart::getCentroid(void) const
Base::Vector3d DrawViewPart::getOriginalCentroid(void) const
{
Base::Vector3d stdOrg(0.0,0.0,0.0);
Base::Vector3d centroid = TechDraw::findCentroidVec(m_saveShape,
getProjectionCS(stdOrg));
return centroid;
return m_saveCentroid;
}
std::vector<DrawViewSection*> DrawViewPart::getSectionRefs(void) const