<html><head></head><body><div class="ydp96ae0de0yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div id="ydp96ae0de0yiv5307561273"><div>Hi all,</div><div><br></div><div>I'm trying to get the bounding box of a set of volumes grouped in an array (several_volumes()). To do so, I say:</div><div><br></div><div><span>samp = BoundingBox Volume { several_volumes() };</span></div><div><span><br></span></div><div>and I get an error ( "syntax error ())")</div><div><span><div><br></div><div>But if I say:<br></div><div><br></div><div><span>samp = BoundingBox Volume { several_volumes(0) };</span><br></div><div><span><br></span></div><div><span>everything is ok, I get the bounding box of only one volume. Is this a bug</span>?</div></span><span><div><span><br></span></div><div><span><br></span></div><div><span>To further explain my problem I have prepared a small script:</span></div><div><span><br></span></div><div><span><div>SetFactory("OpenCASCADE");</div><div><br></div><div>total = newreg;</div><div>Cone(total) = {0.2, -0.2, -0.2, 0, 0, 1, .8, 0, 2*Pi};</div><div><br></div><div>total() += newreg;</div><div>Cone(total(1)) = {0.2, -0.2, -0.2, 0, 0, -1, .8, 0, 2*Pi};</div><div><br></div><div>samp = BoundingBox Volume { total(0)}; // this command gives no problem</div><div>//samp = BoundingBox Volume { total(1)}; // this command gives no problem</div><div>//samp = BoundingBox Volume { total()}; // this command gives problem</div><div><br></div><div>x_s = samp(0);</div><div>y_s = samp(1);</div><div>z_s = samp(2);</div><div><br></div><div>dxs = Abs(samp(0)-samp(3));</div><div>dys = Abs(samp(1)-samp(4));</div><div>dzs = Abs(samp(2)-samp(5));</div><div><br></div><div>Box(newreg) = {x_s, y_s, z_s, dxs, dys, dzs};</div></span><span><div><br></div><div><br></div><div>Best regards,</div><div><br></div><div>Marco</div></span></div></span></div><div class="ydp96ae0de0yiv5307561273ydpa9695fe4yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"></div></div></div></body></html>