mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
0020677: EDF 1219 GEOM: MinDistance gives 0 instead of 20.88
This commit is contained in:
parent
1763c33f94
commit
43fa52fd87
@ -1344,7 +1344,10 @@ static double CheckSingularCase(const TopoDS_Shape& aSh1,
|
|||||||
if( sh.ShapeType()==TopAbs_SHELL || sh.ShapeType()==TopAbs_FACE ) {
|
if( sh.ShapeType()==TopAbs_SHELL || sh.ShapeType()==TopAbs_FACE ) {
|
||||||
// non solid case
|
// non solid case
|
||||||
double U1,U2,V1,V2;
|
double U1,U2,V1,V2;
|
||||||
S->Bounds(U1,U2,V1,V2);
|
// changes for 0020677: EDF 1219 GEOM: MinDistance gives 0 instead of 20.88
|
||||||
|
//S->Bounds(U1,U2,V1,V2); changed by
|
||||||
|
ShapeAnalysis::GetFaceUVBounds(TopoDS::Face(tmpSh1),U1,U2,V1,V2);
|
||||||
|
// end of changes for 020677 (dmv)
|
||||||
Handle(Geom_RectangularTrimmedSurface) TrS1 =
|
Handle(Geom_RectangularTrimmedSurface) TrS1 =
|
||||||
new Geom_RectangularTrimmedSurface(S,U1,(U1+U2)/2.,V1,V2);
|
new Geom_RectangularTrimmedSurface(S,U1,(U1+U2)/2.,V1,V2);
|
||||||
Handle(Geom_RectangularTrimmedSurface) TrS2 =
|
Handle(Geom_RectangularTrimmedSurface) TrS2 =
|
||||||
|
Loading…
Reference in New Issue
Block a user