+ Standard_Boolean IsClosed = Standard_False;
+ if(V1.IsSame(V2)) {
+ IsClosed = Standard_True;
+ TopExp_Explorer expe;
+ Standard_Boolean HasOtherEdges = Standard_False;
+ for(expe.Init(aFace, TopAbs_EDGE); expe.More(); expe.Next()) {
+ TopoDS_Edge Etmp = TopoDS::Edge(expe.Current());
+ if( Etmp.IsSame(edge1) || Etmp.IsSame(edge2) ) continue;
+ if( sae.FirstVertex(Etmp).IsSame(V1) ||
+ sae.LastVertex(Etmp).IsSame(V1) ) {
+ HasOtherEdges = Standard_True;
+ break;
+ }
+ }
+ if(HasOtherEdges) {
+ Standard_Real par = (fp2+lp2)/2.;
+ c3d2->D0(par,PV2);
+ }
+ else {
+ V1 = sae.FirstVertex(edge2);
+ PV1 = BRep_Tool::Pnt(V1);
+ V2 = VM;
+ VM = sae.LastVertex(edge2);
+ PVM = BRep_Tool::Pnt(VM);
+ Standard_Real par = (fp1+lp1)/2.;
+ c3d1->D0(par,PV2);
+ }
+ }