File: regularskewed.dx

package info (click to toggle)
dxsamples 4.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 26,340 kB
  • sloc: ansic: 10,079; sh: 8,445; java: 1,772; makefile: 1,102
file content (33 lines) | stat: -rw-r--r-- 1,265 bytes parent folder | download | duplicates (5)
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
# This example describes a regular grid, where the axes are 
# non-orthogonal
#
# object 1 are the regular positions, where the deltas are non-orthogonal
#
object 1 class gridpositions counts 4 2 3 
origin             0             0             0 
delta             1             0.2           0 
delta             0             2             0 
delta             0             0             1 
#
# object 2 are the regular connections
object 2 class gridconnections counts 4 2 3
#
# object 3 are the data, which are in a one-to-one correspondence with the
# positions ("dep" on positions)
object 3 class array type float rank 0 items 24 data follows
           1          3.4            5            2          
           3.4        5.1            0.3          4.5  
           1          2.3            4.1          2.1
           6            8            9.1          2.3          
           4.5          5            3.0          4.3
           1.2        1.2            3.0          3.2
attribute "dep" string "positions"
#
# the field contains three components: "positions", "connections", and
# "data"
object "regular positions regular connections" class field
component "positions" value 1
component "connections" value 2
component "data" value 3
#
end