THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/12/2004 at 14:10, xxxxxxxx wrote:
I think I've just encountered the same problem as you, but I think I have a solution.
I found (as you did), that if you just iterate through all the parameters and compare them, it always says they are different.
I eventually found out that if you have a 'null' GeData object, then it acts like a NaN, in that if compares false with everything including itself.
Why is this relevant? Because the parameters seem to include a whole bunch of these null/NaN values!
A workaround that I found that seems to work if you want to compare materials A and B is to iterate through all the parameters, and for each parameter get a GeData gA and a GeData gB.
Now, before checked if gA==gB, check whether gA==gA.
If it doesn't then ignore that parameter and move on to the next one.
This seems to work!
Hope this helps.
Cheers - Steve