mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0031424: Visualization - stop using Prs3d_Drawer::HLRAngle() parameter
Prs3d_Drawer, AIS_Shape, AIS_InteractiveContext - removed properties HLRDeviationCoefficient() and HLRAngle(). Prs3d_Drawer::HLRAngle() is kept as alias to Prs3d_Drawer::DeviationAngle() with deprecated flag. Prs3d_Drawer::DeviationAngle() default value is changed from 12 to 20 degrees to match Prs3d_Drawer::HLRAngle() which has been previously used in majority of cases. Removed unused property HLRBRep_PolyAlgo::Angle().
This commit is contained in:
@@ -74,18 +74,11 @@ void StdPrs_HLRPolyShape::ComputeHLR (const Handle(Prs3d_Presentation)& aPresent
|
||||
|
||||
if (aDrawer->IsAutoTriangulation())
|
||||
{
|
||||
const Standard_Boolean aRel = aDrawer->TypeOfDeflection() == Aspect_TOD_RELATIVE;
|
||||
Standard_Real aDef = aRel ? aDrawer->HLRDeviationCoefficient() : aDrawer->MaximalChordialDeviation();
|
||||
IMeshTools_Parameters aMeshParams;
|
||||
aMeshParams.Relative = aRel;
|
||||
aMeshParams.Angle = aDrawer->HLRAngle();
|
||||
aMeshParams.Deflection = aDef;
|
||||
BRepMesh_IncrementalMesh mesh(aShape, aMeshParams);
|
||||
StdPrs_ToolTriangulatedShape::Tessellate (aShape, aDrawer);
|
||||
}
|
||||
|
||||
Handle(HLRBRep_PolyAlgo) hider = new HLRBRep_PolyAlgo(aShape);
|
||||
hider->Projector (aProj);
|
||||
hider->Angle(aDrawer->HLRAngle());
|
||||
hider->Update();
|
||||
Standard_Real sta,end,dx,dy,dz;
|
||||
Standard_ShortReal tolsta, tolend;
|
||||
|
@@ -262,7 +262,7 @@ Standard_Boolean StdPrs_ToolTriangulatedShape::Tessellate (const TopoDS_Shape&
|
||||
// retrieve meshing tool from Factory
|
||||
Handle(BRepMesh_DiscretRoot) aMeshAlgo = BRepMesh_DiscretFactory::Get().Discret (theShape,
|
||||
aDeflection,
|
||||
theDrawer->HLRAngle());
|
||||
theDrawer->DeviationAngle());
|
||||
if (!aMeshAlgo.IsNull())
|
||||
{
|
||||
aMeshAlgo->Perform();
|
||||
|
Reference in New Issue
Block a user