// Set own free boundaries aspect in order to have free
// and unfree boundaries with different colors
Handle(Prs3d_Drawer) aDrawer = Attributes();
+ //aDrawer->SetTypeOfDeflection(Aspect_TOD_ABSOLUTE);
aDrawer->SetUnFreeBoundaryAspect(
new Prs3d_LineAspect(Quantity_NOC_YELLOW, Aspect_TOL_SOLID, 1));
aDrawer->SetFreeBoundaryAspect(new Prs3d_LineAspect(Quantity_NOC_GREEN, Aspect_TOL_SOLID, 1));
SetDynamicHilightAttributes(aDrawer);
}
}
+ //if (!aDrawer.IsNull())
+ // aDrawer->SetTypeOfDeflection(Aspect_TOD_ABSOLUTE);
myHiddenSubShapesDrawer = new AIS_ColoredDrawer(myDrawer);
Handle(Prs3d_ShadingAspect) aShadingAspect = new Prs3d_ShadingAspect();
aReadyToDisplay = false;
}
}
+ // change deviation coefficient to provide more precise circle
+ ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), DynamicHilightAttributes());
+ ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), Attributes());
try {
AIS_Shape::Compute(thePresentationManager, thePresentation, theMode);
}
{
if (theShape.IsNull())
return;
+ if (theDrawer.IsNull())
+ return;
std::shared_ptr<GeomAPI_Shape> aGeomShape(new GeomAPI_Shape());
aGeomShape->setImpl(new TopoDS_Shape(theShape));
aDrawer->SetUIsoAspect(aUIsoAspect);
aDrawer->SetVIsoAspect(aVIsoAspect);
aDrawer->SetIsoOnPlane(false);
+ //aDrawer->SetTypeOfDeflection(Aspect_TOD_ABSOLUTE);
}
bool PartSet_OperationPrs::hasShapes()
// change deviation coefficient to provide more precise circle
// as there is no result, the shape is processed to correct deviation. To be unified
ModuleBase_Tools::setDefaultDeviationCoefficient(aShape, aDrawer);
- Handle(Prs3d_Drawer) aHighlightDrawer = DynamicHilightAttributes();
- if (!aHighlightDrawer.IsNull())
- ModuleBase_Tools::setDefaultDeviationCoefficient(aShape, aHighlightDrawer);
+ ModuleBase_Tools::setDefaultDeviationCoefficient(aShape, DynamicHilightAttributes());
if (myUseAISWidth) {
Handle(AIS_InteractiveObject) anIO = anIter.Value();
aDrawer->PointAspect()->SetTypeOfMarker(Aspect_TOM_PLUS);
else
aDrawer->SetPointAspect(new Prs3d_PointAspect(Aspect_TOM_PLUS, Quantity_NOC_YELLOW, 1.));
+ //aDrawer->SetTypeOfDeflection(Aspect_TOD_ABSOLUTE);
// Activate individual repaintng if this is a part of compsolid
ResultBodyPtr anOwner = ModelAPI_Tools::bodyOwner(myResult);
setAuxiliaryPresentationStyle(false);
// change deviation coefficient to provide more precise circle
- //ModuleBase_Tools::setDefaultDeviationCoefficient(myResult, Attributes());
+ ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), DynamicHilightAttributes());
+ ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), Attributes());
try {
AIS_Shape::Compute(thePresentationManager, thePresentation, theMode);
}