mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0022600: TBB has to be disabled in BRepMesh due to data races
This commit is contained in:
@@ -316,19 +316,20 @@ void Prs3d_ShadedShape::Add(const Handle (Prs3d_Presentation)& aPresentation,
|
||||
}
|
||||
}
|
||||
Standard_Real aDeflection = GetDeflection(aShape, aDrawer);
|
||||
//using of plugin
|
||||
|
||||
// Check if it is possible to avoid unnecessary recomputation
|
||||
// of shape triangulation
|
||||
if( !BRepTools::Triangulation(aShape, aDeflection) )
|
||||
if (!BRepTools::Triangulation (aShape, aDeflection))
|
||||
{
|
||||
BRepTools::Clean(aShape);
|
||||
BRepTools::Clean (aShape);
|
||||
|
||||
BRepMesh_PDiscretRoot pAlgo;
|
||||
pAlgo=BRepMesh_DiscretFactory::Get().Discret(aShape,
|
||||
aDeflection,
|
||||
aDrawer->HLRAngle());
|
||||
if (pAlgo)
|
||||
pAlgo->Perform();
|
||||
// retrieve meshing tool from Factory
|
||||
Handle(BRepMesh_DiscretRoot) aMeshAlgo = BRepMesh_DiscretFactory::Get().Discret (aShape,
|
||||
aDeflection,
|
||||
aDrawer->HLRAngle());
|
||||
if (!aMeshAlgo.IsNull())
|
||||
aMeshAlgo->Perform();
|
||||
}
|
||||
|
||||
ShadeFromShape(aShape, aDeflection, Standard_True, aPresentation, aDrawer);
|
||||
}
|
||||
|
Reference in New Issue
Block a user