Salome HOME
Restore deflection management
[modules/shaper.git] / src / ModuleBase / ModuleBase_ResultPrs.cpp
1 // Copyright (C) 2014-2019  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #include "ModuleBase_ResultPrs.h"
21 #include "ModuleBase_IViewer.h"
22
23 #include <GeomAPI_PlanarEdges.h>
24 #include <GeomAPI_Edge.h>
25
26 #include <ModelAPI_Events.h>
27 #include <ModelAPI_Tools.h>
28 #include <ModelAPI_ResultConstruction.h>
29 #include <ModelAPI_ResultBody.h>
30 #include <ModelAPI_AttributeIntArray.h>
31
32 #include "ModuleBase_Tools.h"
33 #include "ModuleBase_BRepOwner.h"
34
35 #include <Events_InfoMessage.h>
36 #include <Events_Loop.h>
37 #include <Config_PropManager.h>
38
39 #include <AIS_ColoredDrawer.hxx>
40 #include <AIS_InteractiveContext.hxx>
41 #include <AIS_Selection.hxx>
42 #include <BOPTools_AlgoTools3D.hxx>
43 #include <BRep_Builder.hxx>
44 #include <Graphic3d_AspectMarker3d.hxx>
45 #include <Prs3d_Drawer.hxx>
46 #include <Prs3d.hxx>
47 #include <Prs3d_PointAspect.hxx>
48 #include <Prs3d_IsoAspect.hxx>
49 #include <Prs3d_ShadingAspect.hxx>
50 #include <Prs3d_PlaneAspect.hxx>
51 #include <SelectMgr_SequenceOfOwner.hxx>
52 #include <SelectMgr_EntityOwner.hxx>
53 #include <SelectMgr_SelectionManager.hxx>
54 #include <StdPrs_WFShape.hxx>
55 #include <StdPrs_ShadedShape.hxx>
56 #include <StdSelect_BRepSelectionTool.hxx>
57 #include <TColStd_ListIteratorOfListOfInteger.hxx>
58 #include <TopExp_Explorer.hxx>
59 #include <TopoDS.hxx>
60 #include <TopoDS_Builder.hxx>
61 #include <TopoDS_Edge.hxx>
62 #include <BRepMesh_IncrementalMesh.hxx>
63
64 //*******************************************************************************************
65
66 IMPLEMENT_STANDARD_RTTIEXT(ModuleBase_ResultPrs, ViewerData_AISShape);
67
68
69
70 //********************************************************************
71 ModuleBase_ResultPrs::ModuleBase_ResultPrs(ResultPtr theResult)
72   : ViewerData_AISShape(TopoDS_Shape()), myResult(theResult), myAdditionalSelectionPriority(0),
73   myTransparency(1), myIsSubstituted(false)
74 {
75
76   GeomShapePtr aShapePtr = ModelAPI_Tools::shape(theResult);
77   TopoDS_Shape aShape = aShapePtr->impl<TopoDS_Shape>();
78   // Workaround for Sketch subshapes which has no discrete representation
79   // until sketch faces are built and displayed.
80   // Thus, perform discretization of such edges.
81   if (theResult->groupName() == ModelAPI_ResultConstruction::group() &&
82     aShape.ShapeType() == TopAbs_EDGE) {
83     GeomEdgePtr anEdgePtr = GeomEdgePtr(new GeomAPI_Edge(aShapePtr));
84     if (anEdgePtr->isCircle() || anEdgePtr->isArc()) {
85       TopoDS_Edge anEdge = TopoDS::Edge(aShape);
86       TopLoc_Location aLoc;
87       Handle(Poly_Polygon3D) aPoly3D = BRep_Tool::Polygon3D(anEdge, aLoc);
88       if (aPoly3D.IsNull()) {
89         double aDeflection = Config_PropManager::real("Visualization", "body_deflection");
90         BRepMesh_IncrementalMesh(aShape, aDeflection);
91       }
92     }
93   }
94   Set(aShape);
95
96   // Activate individual repaintng if this is a part of compsolid
97   ResultBodyPtr aResOwner = ModelAPI_Tools::bodyOwner(myResult);
98   SetAutoHilight(aResOwner.get() == NULL);
99
100   // Set own free boundaries aspect in order to have free
101   // and unfree boundaries with different colors
102   Handle(Prs3d_Drawer) aDrawer = Attributes();
103   aDrawer->SetUnFreeBoundaryAspect(
104     new Prs3d_LineAspect(Quantity_NOC_YELLOW, Aspect_TOL_SOLID, 1));
105   aDrawer->SetFreeBoundaryAspect(new Prs3d_LineAspect(Quantity_NOC_GREEN, Aspect_TOL_SOLID, 1));
106   aDrawer->SetFaceBoundaryAspect(new Prs3d_LineAspect(Quantity_NOC_BLACK, Aspect_TOL_SOLID, 1));
107
108   Quantity_Color aColor;
109   Color(aColor);
110
111   std::vector<int> aIsoValues;
112   bool isIsoVisible;
113   ModelAPI_Tools::getIsoLines(myResult, isIsoVisible, aIsoValues);
114   if (isIsoVisible) {
115     if (aIsoValues.size() == 0) {
116       aIsoValues.push_back(1);
117       aIsoValues.push_back(1);
118     }
119   }
120   else {
121     aIsoValues.push_back(0);
122     aIsoValues.push_back(0);
123   }
124   myUIsoAspect = new Prs3d_IsoAspect(aColor, Aspect_TOL_SOLID, 1, aIsoValues[0]);
125   myVIsoAspect = new Prs3d_IsoAspect(aColor, Aspect_TOL_SOLID, 1, aIsoValues[1]);
126   aDrawer->SetUIsoAspect(myUIsoAspect);
127   aDrawer->SetVIsoAspect(myVIsoAspect);
128
129   if (aDrawer->HasOwnPointAspect())
130     aDrawer->PointAspect()->SetTypeOfMarker(Aspect_TOM_PLUS);
131   else
132     aDrawer->SetPointAspect(new Prs3d_PointAspect(Aspect_TOM_PLUS, Quantity_NOC_YELLOW, 1.));
133
134   aDrawer = DynamicHilightAttributes();
135   if (aDrawer.IsNull()) {
136     if (!ModuleBase_IViewer::DefaultHighlightDrawer.IsNull()) {
137       aDrawer = new Prs3d_Drawer(*ModuleBase_IViewer::DefaultHighlightDrawer);
138       aDrawer->SetUIsoAspect(myUIsoAspect);
139       aDrawer->SetVIsoAspect(myVIsoAspect);
140       SetDynamicHilightAttributes(aDrawer);
141     }
142   }
143
144   myHiddenSubShapesDrawer = new AIS_ColoredDrawer(myDrawer);
145   Handle(Prs3d_ShadingAspect) aShadingAspect = new Prs3d_ShadingAspect();
146   aShadingAspect->SetMaterial(Graphic3d_NOM_BRASS); //default value of context material
147   aShadingAspect->Aspect()->SetEdgeColor(Quantity_NOC_BLACK);
148   myHiddenSubShapesDrawer->SetShadingAspect(aShadingAspect);
149
150   ModuleBase_Tools::setPointBallHighlighting(this);
151
152   // Define colors for wireframe mode
153   setEdgesDefaultColor();
154
155   ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), DynamicHilightAttributes());
156   ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), Attributes());
157 }
158
159 //********************************************************************
160 void ModuleBase_ResultPrs::setAdditionalSelectionPriority(const int thePriority)
161 {
162   myAdditionalSelectionPriority = thePriority;
163 }
164
165 //********************************************************************
166 void ModuleBase_ResultPrs::SetColor (const Quantity_Color& theColor)
167 {
168   ViewerData_AISShape::SetColor(theColor);
169   myHiddenSubShapesDrawer->ShadingAspect()->SetColor (theColor, myCurrentFacingModel);
170   setEdgesDefaultColor();
171   myUIsoAspect->SetColor(theColor);
172   myVIsoAspect->SetColor(theColor);
173 }
174
175 void ModuleBase_ResultPrs::setEdgesDefaultColor()
176 {
177   if (myResult.get()) {
178     AttributeIntArrayPtr aColorAttr = myResult->data()->intArray(ModelAPI_Result::COLOR_ID());
179     bool aHasColor = aColorAttr.get() && aColorAttr->isInitialized();
180
181     Handle(Prs3d_Drawer) aDrawer = Attributes();
182     aDrawer->SetFaceBoundaryDraw(Standard_True);
183     aDrawer->FaceBoundaryAspect()->SetColor(Quantity_NOC_BLACK);
184
185     if (!aHasColor) {
186       aDrawer->UnFreeBoundaryAspect()->SetColor(Quantity_NOC_YELLOW);
187       aDrawer->FreeBoundaryAspect()->SetColor(Quantity_NOC_GREEN);
188       aDrawer->WireAspect()->SetColor(Quantity_NOC_RED);
189
190       aDrawer->SetUnFreeBoundaryDraw(Standard_True);
191       aDrawer->SetFreeBoundaryDraw(Standard_True);
192       aDrawer->SetWireDraw(Standard_True);
193     }
194   }
195 }
196
197
198 //********************************************************************
199 void ModuleBase_ResultPrs::setSubShapeHidden(const TopoDS_ListOfShape& theShapes)
200 {
201   bool isModified = false;
202
203   TopoDS_Compound aCompound;
204   BRep_Builder aBBuilder;
205   aBBuilder.MakeCompound (aCompound);
206
207   myHiddenSubShapes = theShapes;
208   collectSubShapes(aBBuilder, aCompound, myOriginalShape, myHiddenSubShapes);
209   myVisibleCompound = aCompound;
210
211   aBBuilder.MakeCompound (aCompound);
212   TopoDS_ListOfShape::Iterator aIt(myHiddenSubShapes);
213   for (; aIt.More(); aIt.Next()) {
214     aBBuilder.Add(aCompound, aIt.Value());
215   }
216   myHiddenCompound = aCompound;
217 }
218
219 //********************************************************************
220 bool ModuleBase_ResultPrs::isSubShapeHidden(const TopoDS_Shape& theShape)
221 {
222   if (theShape.IsNull() || theShape.ShapeType() != TopAbs_FACE) // only face shape can be hidden
223     return false;
224
225   // orientation of parameter shape(come from selection) may be wrong, check isEqual() to be sure
226   TopoDS_ListOfShape::Iterator aShapeIt(myHiddenSubShapes);
227   for (; aShapeIt.More(); aShapeIt.Next()) {
228     if (theShape.IsSame(aShapeIt.Value()))
229       return true;
230   }
231
232   return true;
233 }
234
235 //********************************************************************
236 bool ModuleBase_ResultPrs::hasSubShapeVisible(
237   const TopoDS_ListOfShape& theShapesToSkip)
238 {
239   TopoDS_Compound aCompound;
240   BRep_Builder aBuilder;
241   aBuilder.MakeCompound (aCompound);
242   TopoDS_ListOfShape aShapesToSkip;
243   TopoDS_ListOfShape aHiddenCopy(myHiddenSubShapes);
244   aShapesToSkip.Append(aHiddenCopy);
245   for (TopoDS_ListOfShape::Iterator anIt(theShapesToSkip); anIt.More(); anIt.Next())
246     aShapesToSkip.Append(anIt.Value());
247
248   collectSubShapes(aBuilder, aCompound, myOriginalShape, aShapesToSkip);
249   return !BOPTools_AlgoTools3D::IsEmptyShape(aCompound);
250 }
251
252 //********************************************************************
253 bool ModuleBase_ResultPrs::setHiddenSubShapeTransparency(double theTransparency)
254 {
255   if (myTransparency == theTransparency || theTransparency > 1 || theTransparency < 0)
256     return false;
257
258   myTransparency = theTransparency;
259   myHiddenSubShapesDrawer->ShadingAspect()->SetTransparency (theTransparency, myCurrentFacingModel);
260   return true;
261 }
262
263 //********************************************************************
264 void ModuleBase_ResultPrs::Compute(
265           const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
266           const Handle(Prs3d_Presentation)& thePresentation,
267           const Standard_Integer theMode)
268 {
269   std::shared_ptr<GeomAPI_Shape> aShapePtr = myResult->shape();
270   bool aReadyToDisplay = aShapePtr.get();
271   if (aReadyToDisplay) {
272     myOriginalShape = aShapePtr->impl<TopoDS_Shape>();
273     if (myHiddenSubShapes.IsEmpty() || myOriginalShape.ShapeType() > TopAbs_FACE ) {
274       if (!myOriginalShape.IsNull()) {
275         Set(myOriginalShape);
276         myIsSubstituted = false;
277       }
278     }
279     else { // convert shape into SHELL
280       bool isEmptyShape = BOPTools_AlgoTools3D::IsEmptyShape(myVisibleCompound);
281       Set(myVisibleCompound);
282       myIsSubstituted = true;
283       if (isEmptyShape)
284         aReadyToDisplay = false;
285     }
286   }
287   // change deviation coefficient to provide more precise circle
288   try {
289     AIS_Shape::Compute(thePresentationManager, thePresentation, theMode);
290   }
291   catch (...) {
292     return;
293   }
294
295   // visualize hidden sub-shapes transparent
296   if (myResult.get()) {
297     if (myTransparency < 1 && !myHiddenSubShapes.IsEmpty())
298     {
299       StdPrs_ShadedShape::Add(thePresentation, myHiddenCompound, myHiddenSubShapesDrawer);
300       aReadyToDisplay = true;
301     }
302
303     if (!aReadyToDisplay) {
304       Events_InfoMessage("ModuleBase_ResultPrs",
305         "An empty AIS presentation: ModuleBase_ResultPrs").send();
306       static const Events_ID anEvent = Events_Loop::eventByName(EVENT_EMPTY_AIS_PRESENTATION);
307       ModelAPI_EventCreator::get()->sendUpdated(myResult, anEvent);
308     }
309   }
310 }
311
312 //********************************************************************
313 void ModuleBase_ResultPrs::collectSubShapes(BRep_Builder& theBuilder,
314   TopoDS_Shape& theCompound, const TopoDS_Shape& theShape,
315   const TopoDS_ListOfShape& theHiddenSubShapes)
316 {
317   switch (theShape.ShapeType()) {
318     case TopAbs_COMPSOLID:
319     case TopAbs_COMPOUND: {
320       for (TopoDS_Iterator aChildIter (theShape); aChildIter.More(); aChildIter.Next())
321         collectSubShapes(theBuilder, theCompound, aChildIter.Value(), theHiddenSubShapes);
322     }
323     break;
324     case TopAbs_SOLID:
325     case TopAbs_SHELL: {
326       for (TopExp_Explorer anExp (theShape, TopAbs_FACE); anExp.More(); anExp.Next()) {
327         collectSubShapes(theBuilder, theCompound, anExp.Current(), theHiddenSubShapes);
328       }
329     }
330     break;
331     case TopAbs_WIRE: {
332       for (TopExp_Explorer anExp (theShape, TopAbs_EDGE); anExp.More(); anExp.Next()) {
333         collectSubShapes(theBuilder, theCompound, anExp.Current(), theHiddenSubShapes);
334       }
335     }
336     break;
337     case TopAbs_FACE: {
338       if (theHiddenSubShapes.Contains(theShape))
339         return; // remove hidden shape
340       theBuilder.Add(theCompound, theShape);
341     }
342     break;
343     case TopAbs_EDGE:
344     case TopAbs_VERTEX: {
345       theBuilder.Add(theCompound, theShape);
346     }
347     default:
348       break;
349   }
350 }
351
352 //********************************************************************
353 void ModuleBase_ResultPrs::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
354                                             const Standard_Integer theMode)
355 {
356   if (appendVertexSelection(aSelection, theMode))
357     return;
358
359   if (theMode > TopAbs_SHAPE) {
360     // In order to avoid using custom selection modes
361     if (theMode == ModuleBase_ResultPrs::Sel_Result) {
362       AIS_Shape::ComputeSelection(aSelection, TopAbs_COMPOUND);
363     }
364     return;
365   }
366
367   // TODO: OCCT issue should be created for the COMPOUND processing
368   // before it is fixed, the next workaround in necessary
369   if (theMode == AIS_Shape::SelectionMode(TopAbs_COMPOUND)) {
370     const TopoDS_Shape& aShape = Shape();
371     TopExp_Explorer aCompExp(aShape, TopAbs_COMPOUND);
372     // do not activate in compound mode shapes which do not contain compounds
373     if (!aCompExp.More())
374       return;
375   }
376
377   // bug 2110: if (theMode == AIS_Shape::SelectionMode(TopAbs_COMPSOLID)) {
378   //  // Limit selection area only by actual object (Shape)
379   //  ResultCompSolidPtr aCompSolid = ModelAPI_Tools::compSolidOwner(myResult);
380   //  if (aCompSolid.get()) {
381   //    std::shared_ptr<GeomAPI_Shape> aShapePtr = ModelAPI_Tools::shape(aCompSolid);
382   //    if (aShapePtr.get()) {
383   //      TopoDS_Shape aShape = aShapePtr->impl<TopoDS_Shape>();
384   //   int aPriority = StdSelect_BRepSelectionTool::GetStandardPriority(aShape, TopAbs_COMPSOLID);
385   //     /// It is important to have priority for the shape of comp solid result less than priority
386   //      /// for the presentation shape which is a sub-result.
387   //      /// Reason is to select the sub-objects before: #1592
388   //      aPriority = aPriority - 1;
389   //      double aDeflection = Prs3d::GetDeflection(aShape, myDrawer);
390
391   //      Handle(ModuleBase_BRepOwner) aOwner = new ModuleBase_BRepOwner(aShape, aPriority);
392   //      StdSelect_BRepSelectionTool::ComputeSensitive(aShape, aOwner, aSelection,
393   //        aDeflection, myDrawer->HLRAngle(), 9, 500);
394
395   //      for (aSelection->Init(); aSelection->More(); aSelection->Next()) {
396   //        Handle(SelectMgr_EntityOwner) anOwner =
397   //          Handle(SelectMgr_EntityOwner)
398   //          ::DownCast(aSelection->Sensitive()->BaseSensitive()->OwnerId());
399   //        anOwner->Set(this);
400   //      }
401   //      return;
402   //    }
403   //  }
404   //}
405   AIS_Shape::ComputeSelection(aSelection, theMode);
406
407   if (myAdditionalSelectionPriority > 0) {
408     NCollection_Vector<Handle(SelectMgr_SensitiveEntity)> anEntities = aSelection->Entities();
409     for (NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>::Iterator anIt(anEntities);
410          anIt.More();
411          anIt.Next()) {
412       Handle(SelectMgr_SensitiveEntity) anEntity = anIt.Value();
413       Handle(SelectBasics_EntityOwner) aBasicsOwner = anEntity->BaseSensitive()->OwnerId();
414       if (!aBasicsOwner.IsNull())
415         aBasicsOwner->Set(aBasicsOwner->Priority() + myAdditionalSelectionPriority);
416     }
417   }
418 }
419
420 //********************************************************************
421 bool ModuleBase_ResultPrs::appendVertexSelection(const Handle(SelectMgr_Selection)& aSelection,
422                                                  const Standard_Integer theMode)
423 {
424   if (Shape().ShapeType() == TopAbs_VERTEX) {
425     const TopoDS_Shape& aShape = Shape();
426
427     int aPriority = StdSelect_BRepSelectionTool::GetStandardPriority(aShape, TopAbs_VERTEX);
428     double aDeflection = Prs3d::GetDeflection(aShape, myDrawer);
429
430     /// The cause of this method is the last parameter of BRep owner setting into True.
431     /// That means that owner should behave like it comes from decomposition. (In this case, OCCT
432     /// visualizes it in Ring style) OCCT version is 7.0.0 with path for SHAPER module.
433     Handle(StdSelect_BRepOwner) aOwner = new StdSelect_BRepOwner(aShape, aPriority, Standard_True);
434     StdSelect_BRepSelectionTool::ComputeSensitive(aShape, aOwner, aSelection,
435                                                   aDeflection, myDrawer->HLRAngle(), 9, 500);
436
437
438     NCollection_Vector<Handle(SelectMgr_SensitiveEntity)> anEntities = aSelection->Entities();
439     for (NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>::Iterator anIt(anEntities);
440          anIt.More();
441          anIt.Next()) {
442       Handle(SelectMgr_SensitiveEntity) anEntity = anIt.Value();
443       Handle(SelectMgr_EntityOwner) anOwner =
444         Handle(SelectMgr_EntityOwner)
445         ::DownCast(anEntity->BaseSensitive()->OwnerId());
446       anOwner->Set(this);
447     }
448
449     return true;
450   }
451   return false;
452 }
453
454 //********************************************************************
455 void ModuleBase_ResultPrs::HilightSelected(const Handle(PrsMgr_PresentationManager3d)& thePM,
456                                            const SelectMgr_SequenceOfOwner& theOwners)
457 {
458   Handle(SelectMgr_EntityOwner) anOwner;
459   Handle(ModuleBase_BRepOwner) aCompOwner;
460   for (int i = 1; i <= theOwners.Length(); i++) {
461     anOwner = theOwners.Value(i);
462     aCompOwner = Handle(ModuleBase_BRepOwner)::DownCast(anOwner);
463     if (aCompOwner.IsNull()) {
464       thePM->Color(anOwner->Selectable(), GetContext()->SelectionStyle());
465     }
466     else {
467       TopoDS_Shape aShape = aCompOwner->Shape();
468       Handle( Prs3d_Presentation ) aSelectionPrs = GetSelectPresentation( thePM );
469       aSelectionPrs->Clear();
470
471       StdPrs_WFShape::Add(aSelectionPrs, aShape, myDrawer);
472
473       aSelectionPrs->SetDisplayPriority(9);
474       aSelectionPrs->Highlight(GetContext()->SelectionStyle());
475       aSelectionPrs->Display();
476       thePM->Color(this, GetContext()->SelectionStyle());
477     }
478   }
479 }
480
481 //********************************************************************
482 void ModuleBase_ResultPrs::HilightOwnerWithColor(const Handle(PrsMgr_PresentationManager3d)& thePM,
483                                                  const Handle(Prs3d_Drawer)& theStyle,
484                                                  const Handle(SelectMgr_EntityOwner)& theOwner)
485 {
486   Handle(StdSelect_BRepOwner) aOwner = Handle(StdSelect_BRepOwner)::DownCast(theOwner);
487   if (aOwner.IsNull())
488     return;
489
490   TopoDS_Shape aShape = aOwner->Shape();
491   if (!aShape.IsNull()) {
492     thePM->Color(this, theStyle);
493
494     Handle( Prs3d_Presentation ) aHilightPrs = GetHilightPresentation( thePM );
495     aHilightPrs->Clear();
496
497     StdPrs_WFShape::Add(aHilightPrs, aShape, myDrawer);
498     aHilightPrs->Highlight(theStyle);
499
500     if (thePM->IsImmediateModeOn())
501       thePM->AddToImmediateList(aHilightPrs);
502   }
503 }
504
505
506 //********************************************************************
507 void ModuleBase_ResultPrs::updateIsoLines()
508 {
509   std::vector<int> aIsoValues;
510   bool isIsoVisible;
511   ModelAPI_Tools::getIsoLines(myResult, isIsoVisible, aIsoValues);
512   if (isIsoVisible) {
513     if (aIsoValues.size() == 0) {
514       aIsoValues.push_back(1);
515       aIsoValues.push_back(1);
516     }
517   }
518   else {
519     if (aIsoValues.size() == 0) {
520       aIsoValues.push_back(0);
521       aIsoValues.push_back(0);
522     }
523     else {
524       aIsoValues[0] = 0;
525       aIsoValues[1] = 0;
526     }
527   }
528   myUIsoAspect->SetNumber(aIsoValues[0]);
529   myVIsoAspect->SetNumber(aIsoValues[1]);
530 }