0021905: EDF SMESH: Impossible to add a face without layers with "viscous layers"

This commit is contained in:
vsr 2012-10-12 15:07:11 +00:00
parent f3d031f77d
commit 65de7c2a91
3 changed files with 8 additions and 2 deletions

View 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

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

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