1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

48 lines
729 B
Plaintext

## Extension of /users/skv/testref/cd1/ED/cto/003/D1
dset r sqrt(2)
dset k r/2
vertex v1 0 0 0
vertex v2 1 0 0
vertex v3 1 1 0
vertex v4 0 1 0
edge e1 v1 v2
edge e2 v2 v3
edge e3 v3 v4
edge e4 v4 v1
wire wa e1 e2 e3 e4
mkplane fa wa
prism ba fa 0 0 1
vertex v3 -0.25 -0.25 0
vertex v4 2 -0.25 0
edge eb v3 v4
prism fb eb 0 k-0.25 0
prism bb fb 0 0 1
vertex v5 -0.25 -0.25 0
vertex v6 2 -0.25 0
vertex v7 2 k 0
vertex v8 -0.25 k 0
edge e5 v5 v6
edge e6 v6 v7
edge e7 v7 v8
edge e8 v8 v5
wire wb e5 e6 e7 e8
mkplane fb wb
prism bb fb 0 0 1.5
trotate bb -0.25 -0.25 0 0 0 1 45
bcommon result ba bb
checkprops result -s 4.41421
checkview -display result -2d -s -otherwise { ba bb } -path ${imagedir}/${test_image}.png