|
From: Roger H. <rog...@mi...> - 2005-01-20 13:30:33
|
Can anyone tell me why in E3GeometryNURBCurve.c there are a number of calls to Q3_REQUIRE_OR_RESULT which seem to be very lax. For instance in Q3NURBCurve_SetKnot there is a line: Q3_REQUIRE_OR_RESULT(Q3Object_IsType(curve, (kQ3ShapeTypeGeometry)), kQ3Failure); The code then goes on to get the instance data of "curve" and uses as if were known to be a NURBS Curve. Though it is likely the application programmer has called it with the a NURB Curve, there does not seem to be anything to stop him passing any other geometry. Is there any reason why I cannot change the line to test for kQ3GeometryTypeNURBCurve rather than kQ3ShapeTypeGeometry? Roger. |