<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
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;
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 );