[TD]fix projectShape for shape outline

This commit is contained in:
Wanderer Fan
2022-07-28 19:53:05 -04:00
committed by WandererFan
parent 6677cd4d8f
commit 00b671e370

View File

@@ -256,11 +256,16 @@ void GeometryObject::projectShape(const TopoDS_Shape& inShape,
}
//convert the hlr output into TD Geometry
const DrawViewPart* dvp = static_cast<const DrawViewPart*>(m_parent);
extractGeometry(TechDraw::ecHARD, //always show the hard&outline visible lines
true);
extractGeometry(TechDraw::ecOUTLINE,
true);
const DrawViewPart* dvp = static_cast<const DrawViewPart*>(m_parent);
if (!dvp) {
return; //some routines do not have a dvp (ex shape outline)
}
if (dvp->SmoothVisible.getValue()) {
extractGeometry(TechDraw::ecSMOOTH,
true);