Points and vectors in CamBam provide a property 'IsUndefined'.
This returns true if any X,Y or Z properties are NaN.
You can use it like this...
Point3F cnt = ent1.GetCentroid();
if (cnt.IsUndefined) continue;
There is also a .NET function double.IsNaN(...) which is useful to check numbers for NaNs without needing string compares.
If you want to set a point as undefined you can use the point and vector .Undefined static property, like this...
Point3F p = Point3F.Undefined;