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:
c9fd374
)
PAL13460 (PAL EDF 301 force the mesh to go through a point)
author
eap
<eap@opencascade.com>
Wed, 28 Feb 2007 15:05:07 +0000
(15:05 +0000)
committer
eap
<eap@opencascade.com>
Wed, 28 Feb 2007 15:05:07 +0000
(15:05 +0000)
precise node param on edge
src/StdMeshers/StdMeshers_FaceSide.cxx
patch
|
blob
|
history
diff --git
a/src/StdMeshers/StdMeshers_FaceSide.cxx
b/src/StdMeshers/StdMeshers_FaceSide.cxx
index 081d2a79f14391059b06f933b1514ad037b43644..0ceabc89b63220ef27f0a64bd65904cd0c91d0f7 100644
(file)
--- a/
src/StdMeshers/StdMeshers_FaceSide.cxx
+++ b/
src/StdMeshers/StdMeshers_FaceSide.cxx
@@
-263,7
+263,8
@@
const vector<UVPtStruct>& StdMeshers_FaceSide::GetUVPtStruct(bool isXConst,
}
else {
double r = ( uvPt.normParam - prevNormPar )/ paramSize;
- uvPt.param = myFirst[EdgeIndex] * ( 1 - r ) + myLast[EdgeIndex] * r;
+// uvPt.param = myFirst[EdgeIndex] * ( 1 - r ) + myLast[EdgeIndex] * r;
+ uvPt.param = ( r > 0.5 ? myLast[EdgeIndex] : myFirst[EdgeIndex] );
}
if ( !myC2d[ EdgeIndex ].IsNull() ) {
gp_Pnt2d p = myC2d[ EdgeIndex ]->Value( uvPt.param );