File: H4

package info (click to toggle)
opencascade 7.5.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 290,544 kB
  • sloc: cpp: 1,190,524; tcl: 15,703; cs: 5,173; java: 1,557; ansic: 1,174; sh: 901; xml: 699; perl: 54; makefile: 27
file content (47 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## 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

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