I want to origin plane surface.

Dear Sir.

I Select the plane surface.

and then I find the origin of plane surfaec using gp_Pln aPln = aPlane->Pln(); gp_Pnt Origin = aPln.Location();

But I want to center coordinate of plane surface.

aPln.Location() member fuction is not generate center coordinate of plane surface.

I would like to know center coordiate of plane surface.

How do i?

if i can not do know any method , I find center coordinate using four corner vertex of plane surface. Is it correct ? thanks..

s-lee's picture

Dear Sir..

I solve the problem using centroid.

thanks..