mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0029967: Draw Harness - command bounding has annoying syntax
Bnd_OBB constructor from Bnd_Box is fixed for VOID input. DRAW command bounding command is adjusted: - Support of old syntax 'bounding shape'is restored. - Exception on VOID bounding box is avoided. - Arguments are handled in case-insensitive way. - Options -s, -perfmeter, and ability to set result as first argument are removed as redundant. - Help is moved to command definition. Separate command OCC29311 is added (in QADraw) to do the same as option -perfmeter did; tests are updated.
This commit is contained in:
@@ -41,7 +41,7 @@ tcopy bxx b10
|
||||
|
||||
# make some boxes hollow
|
||||
for {set i 1} {$i <= 1} {incr i} {
|
||||
set dim [bounding -s b$i -save xmin ymin zmin xmax ymax zmax]
|
||||
set dim [bounding b$i -save xmin ymin zmin xmax ymax zmax]
|
||||
set dx [dval xmax-xmin]
|
||||
set x1 [dval xmin+0.1*$dx]
|
||||
set x2 [dval ymin+0.1*$dx]
|
||||
|
@@ -135,7 +135,7 @@ vfit
|
||||
|
||||
# add dimension:
|
||||
# detect vertices extremal in X direction
|
||||
bounding -s snowflake -save x1 y1 z1 x2 y2 z2
|
||||
bounding snowflake -save x1 y1 z1 x2 y2 z2
|
||||
plane f1 x1 0 0 1 0 0
|
||||
plane f2 x2 0 0 1 0 0
|
||||
mkface f1 f1
|
||||
|
Reference in New Issue
Block a user