I have a trimed brepface.

how can I get a any point on the brepface and this point can’t closed to the edges of the brepface.

that to say I want this point as far as possible to the edges of the brepface.

I try write codes like that:

on_3dpoint GetPointOnBrepFace(on_brepface*in_facel)

{

double u0,u1;

double v0,v1;

in_face->getdomain(0,&u0,&u1);

in_face->getdomain(1,&v0,&v1);

return in_face->pointat((u1-u0)/2,(v1-v0).2);

}

I find on_brepface::getdomain just get the domain of the surface ,not the on_brepface,

so using in_face->pointat((u1-u0)/2,(v1-v0).2) get a point maybe not on the brepface,but on the surface.

can anyone tell me how to write this fuction?