Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58e82db
)
[GPUSPHGUI] #511: Spheric2 with dynamic boundaries - Mesh offset failed
gpusph_v2
author
eap
<eap@opencascade.com>
Wed, 21 Nov 2018 14:15:54 +0000
(17:15 +0300)
committer
eap
<eap@opencascade.com>
Wed, 21 Nov 2018 14:15:54 +0000
(17:15 +0300)
src/SMESHUtils/SMESH_Offset.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHUtils/SMESH_Offset.cxx
b/src/SMESHUtils/SMESH_Offset.cxx
index 564a09f69d598112ead34121ae574f0edfbfd9f7..8c1743cfac55e11a8f6bfc820024d30e824d1acd 100644
(file)
--- a/
src/SMESHUtils/SMESH_Offset.cxx
+++ b/
src/SMESHUtils/SMESH_Offset.cxx
@@
-2747,8
+2747,9
@@
SMDS_Mesh* SMESH_MeshAlgos::MakeOffset( SMDS_ElemIteratorPtr theFaceIt,
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 tol = Min( 1e-3 * Sqrt( minNodeDist ),
+ 1e-2 * theOffset * sign );
// translate new nodes by normal to input faces
gp_XYZ newXYZ;