mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
[GPUSPHGUI] #511: Spheric2 with dynamic boundaries - Mesh offset failed
This commit is contained in:
parent
fb97845ce9
commit
1dadb7d2e2
@ -6789,7 +6789,9 @@ SMESH_MeshEditor::PGroupIDs SMESH_MeshEditor::Offset( TIDSortedElemSet & theElem
|
|||||||
for ( size_t i = 0; i < new2OldNodes.size(); ++i )
|
for ( size_t i = 0; i < new2OldNodes.size(); ++i )
|
||||||
if ( const SMDS_MeshNode* n = new2OldNodes[ i ].first )
|
if ( const SMDS_MeshNode* n = new2OldNodes[ i ].first )
|
||||||
{
|
{
|
||||||
|
#ifndef _DEBUG_
|
||||||
if ( n->NbInverseElements() > 0 )
|
if ( n->NbInverseElements() > 0 )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
const SMDS_MeshNode* n2 =
|
const SMDS_MeshNode* n2 =
|
||||||
tgtMeshDS->AddNodeWithID( n->X(), n->Y(), n->Z(), idShift + n->GetID() );
|
tgtMeshDS->AddNodeWithID( n->X(), n->Y(), n->Z(), idShift + n->GetID() );
|
||||||
|
@ -2747,8 +2747,9 @@ SMDS_Mesh* SMESH_MeshAlgos::MakeOffset( SMDS_ElemIteratorPtr theFaceIt,
|
|||||||
normals[i].SetCoord( 0,0,0 ); // TODO find norm by neighbors
|
normals[i].SetCoord( 0,0,0 ); // TODO find norm by neighbors
|
||||||
}
|
}
|
||||||
|
|
||||||
const double tol = 1e-3 * Sqrt( minNodeDist );
|
|
||||||
const double sign = ( theOffset < 0 ? -1 : +1 );
|
const double sign = ( theOffset < 0 ? -1 : +1 );
|
||||||
|
const double tol = Min( 1e-3 * Sqrt( minNodeDist ),
|
||||||
|
1e-2 * theOffset * sign );
|
||||||
|
|
||||||
// translate new nodes by normal to input faces
|
// translate new nodes by normal to input faces
|
||||||
gp_XYZ newXYZ;
|
gp_XYZ newXYZ;
|
||||||
|
Loading…
Reference in New Issue
Block a user