"Null Point"

Dear forum,

I am working on some C# code where I am using Brep.ClosestPoint. Depending on what maximumDistance I provide, it may be the case that my point lies too far away from my Brep and in that case I get a Null Point. In those cases I would like to throw a warning, however I can’t figure out how to check if the point is a Null Point or not. Converting the output ToString gives me

-1.23432101234321E+308,-1.23432101234321E+308,-1.23432101234321E+308

hence, that is not an option.

thankful for your help on this one!
-david

Tip: ALWAYS post your code + test data (or an indicative portion).

Hi @DavAndLar,

Use Point3d.IsValid.

— Dale

Thanks @dale , that’s exactly what I needed!