mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0028143: In the method ShapeFix_Edge::FixAddPCurve initialized by face location of face is not taking into account.
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.
This commit is contained in:
parent
7fbac3c240
commit
946e65b9c5
@ -153,7 +153,13 @@ Standard_Boolean ShapeFix_Edge::FixAddPCurve (const TopoDS_Edge& edge,
|
|||||||
const Standard_Boolean isSeam,
|
const Standard_Boolean isSeam,
|
||||||
const Standard_Real prec)
|
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);
|
return FixAddPCurve (edge, surface, location, isSeam, sas, prec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user