---Purpose: Returns the values of the current default attributes.
---Category: Inquire methods
- MinMaxValues ( me;
- XMin, YMin, ZMin : out Real from Standard;
- XMax, YMax, ZMax : out Real from Standard )
- is static;
- ---Level: Public
- ---Purpose: Returns the coordinates of the boundary box of all
- -- structures displayed in the manager <me>.
- ---Category: Inquire methods
-
PrimitivesAspect ( me;
CTXL : out AspectLine3d from Graphic3d;
CTXT : out AspectText3d from Graphic3d;
}
-void Graphic3d_StructureManager::MinMaxValues (Standard_Real& XMin, Standard_Real& YMin, Standard_Real& ZMin, Standard_Real& XMax, Standard_Real& YMax, Standard_Real& ZMax) const {
-
-Standard_Boolean Flag = Standard_True;
-Standard_Real Xm, Ym, Zm, XM, YM, ZM, RL, RF;
-
- RL = RealLast ();
- RF = RealFirst ();
-
- XMin = YMin = ZMin = RL;
- XMax = YMax = ZMax = RF;
-
- Graphic3d_MapIteratorOfMapOfStructure it(MyDisplayedStructure);
- for (; it.More(); it.Next()) {
- Handle(Graphic3d_Structure) SG = it.Key();
- if (! (SG->IsEmpty() || SG->IsInfinite ())) {
- SG->MinMaxValues (Xm, Ym, Zm, XM, YM, ZM);
- if (Xm < XMin) XMin = Xm;
- if (Ym < YMin) YMin = Ym;
- if (Zm < ZMin) ZMin = Zm;
- if (XM > XMax) XMax = XM;
- if (YM > YMax) YMax = YM;
- if (ZM > ZMax) ZMax = ZM;
- Flag = Standard_False;
- }
- }
-
- // If all structures are empty or infinite
- if (Flag) {
- XMin = YMin = ZMin = RF;
- XMax = YMax = ZMax = RL;
- }
-
-}
-
Standard_Integer Graphic3d_StructureManager::NewIdentification () {
Standard_Integer Id = MyStructGenId.Next ();
--- /dev/null
+puts "============"
+puts "OCC24610"
+puts "============"
+puts ""
+#######################################################################
+# Erased AIS object should not be taken into account by FitAll operation
+#######################################################################
+
+pload VISUALIZATION
+vinit
+box b1 200 200 200
+vdisplay b1
+vfit
+box b2 2 2 2
+vdisplay b2
+set color_1 [vreadpixel 32 305]
+verase b1
+vfit
+set color_2 [vreadpixel 32 305]
+if {$color_1 == $color_2} {
+ puts "ERROR: OCC24610 is reproduced"
+}
+
+set only_screen 1