#include "CurveCreator_Curve.hxx"
#include "CurveCreator_UtilsICurve.hxx"
+#include <Basics_OCCTVersion.hxx>
+
#include <GEOMUtils.hxx>
#include <gp_Pln.hxx>
Handle_SelectMgr_Selection aSelection = anAISShape->Selection( AIS_Shape::SelectionMode( TopAbs_VERTEX ) );
for( aSelection->Init(); aSelection->More(); aSelection->Next() )
- {
+ {
+#if OCC_VERSION_LARGE > 0x06080100
+ const SelectMgr_HSensitiveEntity aHSenEntity = aSelection->Sensitive();
+ if( aHSenEntity.IsNull() )
+ continue;
+ Handle_SelectBasics_SensitiveEntity aSenEntity = aHSenEntity->BaseSensitive();
+#else
Handle_SelectBasics_SensitiveEntity aSenEntity = aSelection->Sensitive();
+#endif
+
Handle_Select3D_SensitivePoint aSenPnt = Handle_Select3D_SensitivePoint::DownCast( aSenEntity );
gp_Pnt anOwnerPnt = aSenPnt->Point();
//
#include "GEOMGUI_OCCSelector.h"
+#include <Basics_OCCTVersion.hxx>
+
#include <LightApp_DataSubOwner.h>
#include <OCCViewer_ViewModel.h>
Handle(SelectMgr_Selection) sel = theObj->Selection( m );
for ( sel->Init(); sel->More(); sel->Next() ) {
+#if OCC_VERSION_LARGE > 0x06080100
+ const SelectMgr_HSensitiveEntity aHSenEntity = sel->Sensitive();
+ if( aHSenEntity.IsNull() )
+ continue;
+
+ Handle(SelectBasics_SensitiveEntity) entity = aHSenEntity->BaseSensitive();
+#else
Handle(SelectBasics_SensitiveEntity) entity = sel->Sensitive();
+#endif
if ( entity.IsNull() )
continue;
Handle(SelectMgr_Selection) sel = theObj->Selection( m );
for ( sel->Init(); sel->More(); sel->Next() ) {
+#if OCC_VERSION_LARGE > 0x06080100
+ const SelectMgr_HSensitiveEntity aHSenEntity = sel->Sensitive();
+ if( aHSenEntity.IsNull() )
+ continue;
+
+ Handle(SelectBasics_SensitiveEntity) entity = aHSenEntity->BaseSensitive();
+#else
Handle(SelectBasics_SensitiveEntity) entity = sel->Sensitive();
+#endif
if ( entity.IsNull() )
continue;
-
Handle(SelectMgr_EntityOwner) owner =
Handle(SelectMgr_EntityOwner)::DownCast(entity->OwnerId());
if ( !owner.IsNull() )