// -----------------------------------------
if (!IsEmpty (BVHSubset_3d) && myIsDirty[BVHSubset_3d])
{
+#ifdef REPORT_SELECTION_BUILD
MESSAGE_INFO ("Check and update 3D BVH", "", &aPerfMeter, NULL);
+#endif
// construct adaptor over private fields to provide direct access for the BVH builder
BVHBuilderAdaptorRegular anAdaptor (myObjects[BVHSubset_3d], myDisabledZLayers);
if (!IsEmpty (BVHSubset_3dPersistent) &&
(myIsDirty[BVHSubset_3dPersistent] || myLastViewState.IsChanged (theViewState) || isWindowSizeChanged))
{
+#ifdef REPORT_SELECTION_BUILD
MESSAGE_INFO ("Check and update 3D persistence BVH tree", "", &aPerfMeter, NULL);
+#endif
// construct adaptor over private fields to provide direct access for the BVH builder
BVHBuilderAdaptorPersistent anAdaptor (myObjects[BVHSubset_3dPersistent], myDisabledZLayers,
theCamera, theProjectionMat, theWorldViewMat, theViewportWidth, theViewportHeight);
if (!IsEmpty (BVHSubset_2dPersistent) &&
(myIsDirty[BVHSubset_2dPersistent] || myLastViewState.IsProjectionChanged (theViewState) || isWindowSizeChanged))
{
+#ifdef REPORT_SELECTION_BUILD
MESSAGE_INFO ("Check and update 2D persistence BVH tree", "", &aPerfMeter, NULL);
+#endif
// construct adaptor over private fields to provide direct access for the BVH builder
BVHBuilderAdaptorPersistent anAdaptor (myObjects[BVHSubset_2dPersistent], myDisabledZLayers,
theCamera, theProjectionMat, SelectMgr_SelectableObjectSet_THE_IDENTITY_MAT, theViewportWidth, theViewportHeight);
Standard_Integer aWidth;
Standard_Integer aHeight;
mySelectingVolumeMgr.WindowSize (aWidth, aHeight);
+#ifdef REPORT_SELECTION_BUILD
MESSAGE_INFO ("UpdateBVH", "", &aPerfMeter, aParentAlert);
+#endif
mySelectableObjects.UpdateBVH (mySelectingVolumeMgr.Camera(),
mySelectingVolumeMgr.ProjectionMatrix(),
mySelectingVolumeMgr.WorldViewMatrix(),
}
}
}
-
+#ifdef REPORT_SELECTION_BUILD
MESSAGE_INFO ("SortResult", "", &aPerfMeter, aParentAlert);
+#endif
SortResult();
#ifdef REPORT_SELECTION_BUILD
Standard_SStream aStreamDone;