mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0027796: Visualization - allow 3D objects with Graphic3d_TMF_2d flag
Graphic3d_TransformPers::Apply() now does not reset projection matrix for objects with Graphic3d_TMF_2d flag. Useless flag Graphic3d_TMF_2d_IsTopDown has been removed. SelectMgr_SelectableObjectTrsfPersSet now does not skip Graphic3d_TMF_2d presentations. OpenGl_Layer::BoundingBox() now takes into account Graphic3d_TMF_2d presentations for proper Z-fit. AIS_ColorScale now uses "lazy" mode for rendering labels (considering 2D persistence to be already defined within entire structure). OpenGl_Layer::updateBVH() now updates myAlwaysRenderedMap to handle dynamic transformation persistence flag change without redisplaying the object.
This commit is contained in:
@@ -137,7 +137,7 @@ const NCollection_Handle<BVH_Tree<Standard_Real, 3> >&
|
||||
|
||||
Bnd_Box aBoundingBox;
|
||||
|
||||
if (anObject->TransformPersistence().Flags && !(anObject->TransformPersistence().Flags & Graphic3d_TMF_2d))
|
||||
if (anObject->TransformPersistence().Flags != 0)
|
||||
{
|
||||
anObject->BoundingBox (aBoundingBox);
|
||||
if (!aBoundingBox.IsVoid())
|
||||
|
Reference in New Issue
Block a user