mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-09 15:33:07 +05:00
Fix regression of Extrusion 3D caused by OCCT changes
This commit is contained in:
parent
78e005bc86
commit
90741df834
@ -225,11 +225,8 @@ const BRepMesh_Triangle* SMESH_Delaunay::FindTriangle( const gp_XY&
|
|||||||
gp_XY seg = uv - gc;
|
gp_XY seg = uv - gc;
|
||||||
|
|
||||||
tria->Edges( linkIDs, ori );
|
tria->Edges( linkIDs, ori );
|
||||||
#if OCC_VERSION_LARGE <= 0x07030000
|
|
||||||
int triaID = _triaDS->IndexOf( *tria );
|
const BRepMesh_Triangle* prevTria = tria;
|
||||||
#else
|
|
||||||
int triaID = tria - & ( _triaDS->GetElement( 0 ));
|
|
||||||
#endif
|
|
||||||
tria = 0;
|
tria = 0;
|
||||||
|
|
||||||
for ( int i = 0; i < 3; ++i )
|
for ( int i = 0; i < 3; ++i )
|
||||||
@ -252,7 +249,9 @@ const BRepMesh_Triangle* SMESH_Delaunay::FindTriangle( const gp_XY&
|
|||||||
double uSeg = ( uv1 - gc ) ^ lin / crossSegLin;
|
double uSeg = ( uv1 - gc ) ^ lin / crossSegLin;
|
||||||
if ( 0. <= uSeg && uSeg <= 1. )
|
if ( 0. <= uSeg && uSeg <= 1. )
|
||||||
{
|
{
|
||||||
tria = & _triaDS->GetElement( triIDs.Index( 1 + ( triIDs.Index(1) == triaID )));
|
tria = & _triaDS->GetElement( triIDs.Index( 1 ));
|
||||||
|
if ( tria == prevTria )
|
||||||
|
tria = & _triaDS->GetElement( triIDs.Index( 2 ));
|
||||||
if ( tria->Movability() != BRepMesh_Deleted )
|
if ( tria->Movability() != BRepMesh_Deleted )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user