gp_Pnt set up


I wonder that I can create a gp_Pnt point without setting the X,Y and Z value. Thats a bit dangerous, isn't it? And I dont found a method to check if the coordinates are set...?

Thanks Simon

Dennis G.'s picture

Hey Simon,

it's as dangerous as creating an integer variable without assigning a value to it: int anInteger; //Ooops!
It's up to the programmer to make sure the coordinates are set correctly.



samscore's picture

gp_Pnt casPoint; //Ooops! :-)
I will watch out for it...