Salome HOME
projects
/
plugins
/
hexoticplugin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
84fa647
)
23369: [CEA 1513] compute a mesh using an already existing mesh with MG-CADSurf
SHAPER_2.7.0
V8_3_0a1
V8_3_0a2
V8_3_0b1
author
eap
<eap@opencascade.com>
Mon, 19 Dec 2016 10:47:00 +0000
(13:47 +0300)
committer
eap
<eap@opencascade.com>
Mon, 19 Dec 2016 10:47:00 +0000
(13:47 +0300)
src/HexoticPlugin/HexoticPlugin_Hexotic.cxx
patch
|
blob
|
history
diff --git
a/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx
b/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx
index 4150e40c9126c9e9f21e803d2f8eea3ee6192612..67481afedafd63f1481b5d5d4f6068e9d33e67ff 100644
(file)
--- a/
src/HexoticPlugin/HexoticPlugin_Hexotic.cxx
+++ b/
src/HexoticPlugin/HexoticPlugin_Hexotic.cxx
@@
-143,7
+143,8
@@
bool HexoticPlugin_Hexotic::CheckBLSURFHypothesis( SMESH_Mesh& aMesh,
// If a BLSURF hypothesis is applied, get it
SMESH_HypoFilter blsurfFilter;
// If a BLSURF hypothesis is applied, get it
SMESH_HypoFilter blsurfFilter;
- blsurfFilter.Init( blsurfFilter.HasName( BLSURFPlugin_Hypothesis::GetHypType() ));
+ blsurfFilter.Init( blsurfFilter.HasName( BLSURFPlugin_Hypothesis::GetHypType(true) ));
+ blsurfFilter.Or ( blsurfFilter.HasName( BLSURFPlugin_Hypothesis::GetHypType(false)));
std::list<const SMESHDS_Hypothesis *> appliedHyps;
aMesh.GetHypotheses( aShape, blsurfFilter, appliedHyps, false );
std::list<const SMESHDS_Hypothesis *> appliedHyps;
aMesh.GetHypotheses( aShape, blsurfFilter, appliedHyps, false );
@@
-151,7
+152,9
@@
bool HexoticPlugin_Hexotic::CheckBLSURFHypothesis( SMESH_Mesh& aMesh,
itl = appliedHyps.begin();
theHyp = (*itl); // use only the first hypothesis
std::string hypName = theHyp->GetName();
itl = appliedHyps.begin();
theHyp = (*itl); // use only the first hypothesis
std::string hypName = theHyp->GetName();
- if (hypName == BLSURFPlugin_Hypothesis::GetHypType()) {
+ if (hypName == BLSURFPlugin_Hypothesis::GetHypType(true) ||
+ hypName == BLSURFPlugin_Hypothesis::GetHypType(false) )
+ {
_blsurfHypo = static_cast<const BLSURFPlugin_Hypothesis*> (theHyp);
ASSERT(_blsurfHypo);
return true;
_blsurfHypo = static_cast<const BLSURFPlugin_Hypothesis*> (theHyp);
ASSERT(_blsurfHypo);
return true;