mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0030687: Visualization - remove redundant interfaces SelectBasics_EntityOwner and SelectBasics_SensitiveEntity
SelectBasics_EntityOwner has been merged into SelectMgr_EntityOwner. Unused property SelectMgr_EntityOwner::ResetLocation() has been removed. SelectBasics package has been moved from TKService to TKV3d. SelectBasics_SensitiveEntity has been merged into Select3D_SensitiveEntity.
This commit is contained in:
@@ -107,9 +107,7 @@ Select3D_BndBox3d SelectMgr_SensitiveEntitySet::Box (const Standard_Integer theI
|
||||
Standard_Real SelectMgr_SensitiveEntitySet::Center (const Standard_Integer theIndex,
|
||||
const Standard_Integer theAxis) const
|
||||
{
|
||||
const Handle(SelectBasics_SensitiveEntity)& aBasicEntity =
|
||||
GetSensitiveById (theIndex)->BaseSensitive();
|
||||
Handle(Select3D_SensitiveEntity) aSensitive (Handle(Select3D_SensitiveEntity)::DownCast (aBasicEntity));
|
||||
const Handle(Select3D_SensitiveEntity)& aSensitive = GetSensitiveById (theIndex)->BaseSensitive();
|
||||
const gp_Pnt aCenter = aSensitive->CenterOfGeometry();
|
||||
Standard_Real aCenterCoord = 0.0;
|
||||
aCenterCoord = theAxis == 0 ? aCenter.X() :
|
||||
|
Reference in New Issue
Block a user