Salome HOME
0021905: EDF SMESH: Impossible to add a face without layers with "viscous layers"
authorvsr <vsr@opencascade.com>
Fri, 12 Oct 2012 15:07:11 +0000 (15:07 +0000)
committervsr <vsr@opencascade.com>
Fri, 12 Oct 2012 15:07:11 +0000 (15:07 +0000)
doc/salome/gui/SMESH/input/mesh_preferences.doc
src/OBJECT/SMESH_PreviewActorsCollection.cxx
src/SMESHGUI/SMESHGUI.cxx

index 1b1b2f96ce9d56290aa6bb939b995cdce7bc8f1b..d2a6eb41fad65a18e0a72404da2ba8a6e3ec52fc 100644 (file)
@@ -98,6 +98,12 @@ number of segments on each edge</li>
 <li><b>Area precision</b> - allows to adjust input precision of mesh element area.</li>
 <li><b>Volume precision</b> - allows to adjust input precision of mesh element volume.</li>
 </ul>
+<li><b>Preview</b></li>
+<ul>
+<li><b>Sub-shapes preview chunk size</b> - allows to limit the number
+of preview sub-shapes shown in the hypotheses creation dialog boxes,
+for example "Reverse Edges" parameter of \ref number_of_segments_anchor "Number of segments" hypothesis. 
+</ul>
 <li><b>Python Dump</b></li>
 <ul>
 <li><b>Historical python dump</b> checkbox allows switching between 
index b5e145cc5513398218277e5249196c9a52f4e8d9..9fecefb1866a3065443bf54b40f061aaeec9b994 100644 (file)
@@ -77,7 +77,7 @@ bool SMESH_PreviewActorsCollection::Init( const TopoDS_Shape& theShape,
   myMapOfShapes.Clear();
   myIndices.clear();
   myCurrentChunk = 0;
-  myChunkSize = mgr->integerValue( "SMESH", "preview_actor_chunk_size", 100 );
+  myChunkSize = qMax(1, mgr->integerValue( "SMESH", "preview_actor_chunk_size", 100 ) );
 
   if ( theShape.IsNull() )
     return false;
index 10d66e8a778e195f5dafd47938920908985023be..b4c12d3242fade42006de9c6957ee2c0917301a1 100644 (file)
@@ -4751,7 +4751,7 @@ void SMESHGUI::createPreferences()
   int previewGroup = addPreference( tr( "SMESH_PREF_GROUP_PREVIEW" ), genTab );
   setPreferenceProperty( previewGroup, "columns", 2 );
   int chunkSize = addPreference( tr( "PREF_PREVIEW_CHUNK_SIZE" ), previewGroup, LightApp_Preferences::IntSpin, "SMESH", "preview_actor_chunk_size" );
-  setPreferenceProperty( chunkSize, "min",  0 );
+  setPreferenceProperty( chunkSize, "min",  1 );
   setPreferenceProperty( chunkSize, "max",  1000 );
   setPreferenceProperty( chunkSize, "step", 50 );