TopoDS_Edge& theSeamEdge,
gp_Pnt2d& theNextPoint)
{
- Handle(Geom_Surface) RefSurf = BRep_Tool::Surface(theFrefFace);
-
// Find seam edge between removed edges
theSeamEdge.Nullify();
for (Standard_Integer i = 1; i <= theRemovedEdges.Length(); i++)
if ((aFirstVertex.IsSame(theCurVertex) || aLastVertex.IsSame(theCurVertex))
&& BRep_Tool::IsClosed(anEdge, theFrefFace))
{
+ // Problem with mirrored cylinder BEGIN
+ if (!aFirstVertex.IsSame(theCurVertex)) {
+ anEdge.Reverse();
+ aPC = BRep_Tool::CurveOnSurface(anEdge, theFrefFace, Param1, Param2);
+ TopExp::Vertices(anEdge, aFirstVertex, aLastVertex, Standard_True);
+ }
+ // Problem with mirrored cylinder END
Standard_Real aParam = (anEdge.Orientation() == TopAbs_FORWARD) ? Param1 : Param2;
gp_Pnt2d aPoint = aPC->Value(aParam);
Standard_Real aUdiff = Abs(aPoint.X() - theCurPoint.X());
unifysamedom result c3
-checknbshapes result -t -solid 1 -shell 1 -face 3 -wire 3 -edge 3 -vertex 3
+checknbshapes result -t -solid 1 -shell 1 -face 3 -wire 3 -edge 3 -vertex 2
checkview -display result -2d -path ${imagedir}/${test_image}.png