[TD]make scrubbing count a property of view

This commit is contained in:
wandererfan
2023-04-17 19:00:56 -04:00
committed by WandererFan
parent 73c706fb1b
commit 3d0d65b41c
5 changed files with 18 additions and 6 deletions

View File

@@ -137,6 +137,8 @@ DrawViewPart::DrawViewPart(void)
"Show Hidden Iso u, v lines");
ADD_PROPERTY_TYPE(IsoCount, (prefIsoCount()), sgroup, App::Prop_None,
"Number of iso parameters lines");
ADD_PROPERTY_TYPE(ScrubCount, (Preferences::scrubCount()), sgroup, App::Prop_None,
"The number of times FreeCAD should try to clean the HLR result.");
//initialize bbox to non-garbage
bbox = Base::BoundBox3d(Base::Vector3d(0.0, 0.0, 0.0), 0.0);
@@ -361,6 +363,7 @@ TechDraw::GeometryObjectPtr DrawViewPart::buildGeometryObject(TopoDS_Shape& shap
go->isPerspective(Perspective.getValue());
go->setFocus(Focus.getValue());
go->usePolygonHLR(CoarseView.getValue());
go->setScrubCount(ScrubCount.getValue());
if (CoarseView.getValue()) {
//the polygon approximation HLR process runs quickly, so doesn't need to be in a