Plane.IsValid bug?

This function returns True, not sure that’s the result it should be.

Hi @MateuszZwierzycki ,

why do you think that this Plane should not be valid? You have the origin point and X and Y vectors. Do you think that Double.NaN should “break” this and return false?

Hi @MateuszZwierzycki,

Why is this important? Are you seeing planes with origin component as NaN?

– Dale

It seems the IsValid function is inconsistent, unless I’m missing something - setting one coordinate of the X or Y axis to NaN returns false, while the NaN origin is fine.

We’re performing unit tests, where I want to make sure the method throws an exception. Using the IsValid function as one of the gatekeeping conditions.

RH-76196 is fixed in the latest WIP

1 Like