*/
void BLSURFPluginGUI_HypothesisCreator::onAddEnforcedVertices()
{
- BLSURFPluginGUI_HypothesisCreator* that = (BLSURFPluginGUI_HypothesisCreator*)this;
-
getGeomSelectionTool()->selectionMgr()->clearFilters();
myEnfVertexWdg->deactivateSelection();
if ( CORBA::is_nil(getGeomEngine()))
return;
- GEOM::GEOM_IMeasureOperations_var measureOp = getGeomEngine()->GetIMeasureOperations( that->getGeomSelectionTool()->getMyStudy()->StudyId() );
+ GEOM::GEOM_IMeasureOperations_var measureOp = getGeomEngine()->GetIMeasureOperations( getGeomSelectionTool()->getMyStudy()->StudyId() );
if (CORBA::is_nil(measureOp))
return;
{
periodicity_i[PERIODICITY_P1_SOURCE_COLUMN] = sourceVertices[0].in();
periodicity_i[PERIODICITY_P2_SOURCE_COLUMN] = sourceVertices[1].in();
- periodicity_i[PERIODICITY_P3_SOURCE_COLUMN] = sourceVertices[2].in();
+ if ( onFace )
+ periodicity_i[PERIODICITY_P3_SOURCE_COLUMN] = sourceVertices[2].in();
}
if (targetVertices.length()!=0)
{
periodicity_i[PERIODICITY_P1_TARGET_COLUMN] = targetVertices[0].in();
periodicity_i[PERIODICITY_P2_TARGET_COLUMN] = targetVertices[1].in();
- periodicity_i[PERIODICITY_P3_TARGET_COLUMN] = targetVertices[2].in();
+ if ( onFace )
+ periodicity_i[PERIODICITY_P3_TARGET_COLUMN] = targetVertices[2].in();
}
if (onFace)