mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028895: Visualization, V3d_View::SetComputedMode() - HLR calculation is performed multiple times when 'hlr on' has been called
V3d_View::SetComputedMode() - removed implicit View update. Graphic3d_CView::SetComputedMode(), ::ReCompute() - fixed uninitialized bounding box of Computed structure. PrsMgr_Presentation::Compute() - fixed computation of Computed structure with transformation within Connected presentation. StdPrs_HLRPolyShape::Add() now creates Graphic3d_ArrayOfSegments instead of inefficient Graphic3d_ArrayOfPolylines with boundaries at every segment. Fixed error in test case bugs/vis/bug24388_1.
This commit is contained in:
@@ -258,6 +258,7 @@ void Graphic3d_CView::SetComputedMode (const Standard_Boolean theMode)
|
||||
myStructsComputed .Append (aCompStruct);
|
||||
}
|
||||
|
||||
aCompStruct->CalculateBoundBox();
|
||||
eraseStructure (aStruct->CStructure());
|
||||
displayStructure (aCompStruct->CStructure(), aStruct->DisplayPriority());
|
||||
}
|
||||
@@ -306,6 +307,7 @@ void Graphic3d_CView::ReCompute (const Handle(Graphic3d_Structure)& theStruct)
|
||||
theStruct->IsTransformed() ? theStruct->Compute (this, theStruct->Transformation(), aCompStruct)
|
||||
: theStruct->Compute (this, aCompStruct);
|
||||
aCompStruct->SetHLRValidation (Standard_True);
|
||||
aCompStruct->CalculateBoundBox();
|
||||
|
||||
// of which type will be the computed?
|
||||
const Standard_Boolean toComputeWireframe = myVisualization == Graphic3d_TOV_WIREFRAME
|
||||
|
Reference in New Issue
Block a user