[cgma-dev] r3563 - cgm/trunk/itaps

Stuart Slattery sslattery at wisc.edu
Wed Mar 3 18:39:17 CST 2010


James Porter wrote:
> On Wed, 2010-03-03 at 17:31 -0600, kraftche at cae.wisc.edu wrote:
>   
>>  static int iGeom_get_nonmanifold_sense( const BasicTopologyEntity* child,
>>                                          const BasicTopologyEntity* parent,
>> @@ -3162,8 +3162,8 @@
>>  {
>>    RefEntity** ptr = (RefEntity**)entity_handle;
>>    const CubitVector pt(x,y,z);
>> -  CubitStatus s = iGeom_get_point_containment( pt, *ptr );
>> -  RETURN( (s == CUBIT_SUCCESS ? iBase_SUCCESS : iBase_FAILURE) );
>> +  *ptr = iGeom_get_point_containment( pt );
>> +  RETURN( iBase_SUCCESS );
>>  }
>>     
>
> Should this return an error if *ptr is NULL? It seems like it should.
>
> - Jim
>
>   
It returns a null pointer when the point passed to getPtClass is not in 
the CGM geometry.

Stuart


More information about the cgma-dev mailing list