[TD]Refactor Dimensions for 3d upgrade
- separate validation, geometry and reference handling into individual files - improve 3d reference geometry handling - eliminate duplicate dim creation code - add Dimension reference repair dialog - Refactor formatting out of DrawViewDimension - move dimension repaint control to ViewProvider
This commit is contained in:
@@ -143,6 +143,7 @@ void GeometryObject::clear()
|
||||
|
||||
void GeometryObject::projectShape(const TopoDS_Shape& inShape, const gp_Ax2& viewAxis)
|
||||
{
|
||||
// Base::Console().Message("GO::projectShape()\n");
|
||||
clear();
|
||||
|
||||
Handle(HLRBRep_Algo) brep_hlr;
|
||||
@@ -251,9 +252,11 @@ void GeometryObject::projectShape(const TopoDS_Shape& inShape, const gp_Ax2& vie
|
||||
//convert the hlr output into TD Geometry
|
||||
void GeometryObject::makeTDGeometry()
|
||||
{
|
||||
extractGeometry(TechDraw::ecHARD,//always show the hard&outline visible lines
|
||||
true);
|
||||
extractGeometry(TechDraw::ecOUTLINE, true);
|
||||
// Base::Console().Message("GO::makeTDGeometry()\n");
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user