* \param thePoint the point to examine
* \return result zone
*/
- HYDROData_Zone GetZoneFromPoint( const gp_XY& thePoint ) const [Handle_HYDROData_Zone ( const gp_XY& )];
+ HYDROData_Zone GetZoneFromPoint( SIP_PYTUPLE ) const [Handle_HYDROData_Zone ( const gp_XY& )];
%MethodCode
Handle(HYDROData_Zone) aRes;
- Py_BEGIN_ALLOW_THREADS
- aRes = sipSelfWasArg ? sipCpp->HYDROData_CalculationCase::GetZoneFromPoint( *a0 ) :
- sipCpp->GetZoneFromPoint( *a0 );
- Py_END_ALLOW_THREADS
+ double x = 0.0, y = 0.0;
+ if ( PyArg_ParseTuple( a0, "dd", &x, &y ) )
+ {
+ gp_XY aPnt( x, y );
+
+ Py_BEGIN_ALLOW_THREADS
+ aRes = sipSelfWasArg ? sipCpp->HYDROData_CalculationCase::GetZoneFromPoint( aPnt ) :
+ sipCpp->GetZoneFromPoint( aPnt );
+ Py_END_ALLOW_THREADS
+ }
sipRes = (HYDROData_Zone*)createPointer( aRes );
%End