Class ShapeAnalysis::Surface is initialized by transformed surface in the method
ShapeFix_Edge::FixAddPCurve (const TopoDS_Edge& edge,const TopoDS_Face& face, const Standard_Boolean isSeam, const Standard_Real prec) in the case when face has location.
const Standard_Boolean isSeam,
const Standard_Real prec)
{
- Handle(ShapeAnalysis_Surface) sas = new ShapeAnalysis_Surface (surface);
+ Handle(Geom_Surface) aTransSurf = surface;
+ if( !location.IsIdentity())
+ {
+ gp_Trsf aTrsf(location);
+ aTransSurf = Handle(Geom_Surface)::DownCast(surface->Transformed(aTrsf));
+ }
+ Handle(ShapeAnalysis_Surface) sas = new ShapeAnalysis_Surface (aTransSurf);
return FixAddPCurve (edge, surface, location, isSeam, sas, prec);
}