mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-31 12:40:33 +05:00
Improve the returned plane vector
This commit is contained in:
parent
0e73b458b6
commit
869b4c84f2
@ -13231,13 +13231,17 @@ void SMESH_MeshEditor::MakePolyLine( TListOfPolySegments& theSegments,
|
||||
if ( polySeg.myMidProjPoint.Distance( pMid ) < Precision::Confusion() )
|
||||
{
|
||||
SMESH_MeshAlgos::FaceNormal( face, const_cast< gp_XYZ& >( polySeg.myVector.XYZ() ));
|
||||
polySeg.myMidProjPoint = pMid + polySeg.myVector.XYZ();
|
||||
polySeg.myMidProjPoint = pMid + polySeg.myVector.XYZ() * ( p1 - p2 ).Modulus() * 0.333;
|
||||
}
|
||||
else
|
||||
{
|
||||
polySeg.myVector = polySeg.myMidProjPoint.XYZ() - pMid;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
polySeg.myVector = plnNorm ^ ( p1 - p2 );
|
||||
}
|
||||
}
|
||||
|
||||
// assure that inverse elements are constructed, avoid their concurrent building in threads
|
||||
|
Loading…
Reference in New Issue
Block a user