void BLSURFPlugin_Hypothesis::SetPhysicalMesh(PhysicalMesh thePhysicalMesh) {
if (thePhysicalMesh != _physicalMesh) {
_physicalMesh = thePhysicalMesh;
- switch (_physicalMesh) {
- case DefaultSize:
- default:
- _phySize = GetDefaultPhySize();
- _gradation = GetDefaultGradation();
- break;
- }
NotifySubMeshesHypothesisModification();
}
}
//=======================================================================
void BLSURFPlugin_Hypothesis::SetSizeMapEntry(const std::string& entry, const std::string& sizeMap) {
if (_sizeMap[entry].compare(sizeMap) != 0) {
+ SetPhysicalMesh(SizeMap);
_sizeMap[entry] = sizeMap;
NotifySubMeshesHypothesisModification();
}
//=======================================================================
void BLSURFPlugin_Hypothesis::SetAttractorEntry(const std::string& entry, const std::string& attractor) {
if (_attractors[entry].compare(attractor) != 0) {
+ SetPhysicalMesh(SizeMap);
_attractors[entry] = attractor;
NotifySubMeshesHypothesisModification();
}
//=======================================================================
void BLSURFPlugin_Hypothesis::SetClassAttractorEntry(const std::string& entry, const std::string& attEntry, double StartSize, double EndSize, double ActionRadius, double ConstantRadius)
{
+ SetPhysicalMesh(SizeMap);
+
// The new attractor can't be defined on the same face as another sizemap
TSizeMap::iterator it = _sizeMap.find( entry );
if ( it != _sizeMap.end() ) {
MESSAGE("BLSURFPlugin_Hypothesis::SetEnforcedVertex("<< theFaceEntry << ", "
<< x << ", " << y << ", " << z << ", " << theVertexName << ", " << theVertexEntry << ", " << theGroupName << ")");
+ SetPhysicalMesh(SizeMap);
+
// TEnfVertexList::iterator it;
bool toNotify = false;
bool toCreate = true;
*/
//=============================================================================
void BLSURFPlugin_Hypothesis_i::SetPhySize(CORBA::Double theValue) {
- // MESSAGE("BLSURFPlugin_Hypothesis_i::SetPhySize");
+ MESSAGE("BLSURFPlugin_Hypothesis_i::SetPhySize");
ASSERT(myBaseImpl);
this->GetImpl()->SetPhySize(theValue);
SMESH::TPythonDump() << _this() << ".SetPhySize( " << theValue << " )";
*/
//=============================================================================
CORBA::Double BLSURFPlugin_Hypothesis_i::GetPhySize() {
- // MESSAGE("BLSURFPlugin_Hypothesis_i::GetPhySize");
+ MESSAGE("BLSURFPlugin_Hypothesis_i::GetPhySize");
ASSERT(myBaseImpl);
return this->GetImpl()->GetPhySize();
}
ASSERT(myBaseImpl);
MESSAGE("IDL : SetEnforcedVertexEntry(" << theFaceEntry << ", " << x << ", " << y << ", " << z << ", \"" << theVertexName << "\", \"" << theVertexEntry << "\", \"" << theGroupName << "\")");
bool newValue = false;
-
if (string(theVertexEntry).empty()) {
try {
::BLSURFPlugin_Hypothesis::TEnfVertexCoordsList coordsList =