Cpp Conditional Statement In Geometry