- exp.Init( LinEdge1, TopAbs_VERTEX );
- TopoDS_Vertex V1 = TopoDS::Vertex( exp.Current() );
- exp.Next();
- TopoDS_Vertex V2 = TopoDS::Vertex( exp.Current() );
- gp_Pnt PE1 = BRep_Tool::Pnt(V1);
- gp_Pnt PE2 = BRep_Tool::Pnt(V2);
- if( ( P1.Distance(PE1) > Precision::Confusion() ) &&
- ( P1.Distance(PE2) > Precision::Confusion() ) )
- {
- std::swap( LinEdge1, LinEdge2 );
- std::swap( linEdge1Computed, linEdge2Computed );
- }