Axiom - Datafile Structure

Is "Viewfile" the same as the "datafile" generated in the .view directory? The "datafile" that I am looking at for the 3D case is different from the format of the "Viewfile" given in the documentation. I have therefore documented the format of the "datafile" that I am seeing (information from 'src/graph/view3D/write3d.c' and from looking at the actual file generated).

I assume this file is needed for communication between C code and x-window viewer.

Viewfile Data Format:

1=view3Dtype, 2=viewgraphtype, 3= view2Dtype, 4=view tube type

title

window boundaries: X, Y, width height

0=no display, 1=display | scale factors X and Y | change in X and Y increments | centre for X and Y axes

Datafile Example

The datafile is always written to 'directoryname.VIEW' directory regardless of what other filetypes may have been selected, this file is used for internal purposes but it may be useful for other things. The information from the following table is taken from 'src/graph/view3D/write3d.c'. It is a text file and is roughly in 3 parts:

In more detail the entries are as follows:

line in file data: where there are more than one value per line they are separated by spaces
1 typeOf3D              
2 xmin xmax ymin ymax zmin zmax    
3 title
4 deltaX deltaY scale scaleX scaleY scaleZ theta phi
5
view window
vw.x vw.y vw.width vw.height        
6 haveControl style axesOn hueOffset number
OfHues
diagonals outline
RenderOn
 
7 lightVec[0] lightVec[1] lightVec[2] translucency        
8 perspective eyeDistance            
9 numOfPoints              
10- aPt->x aPt->y aPt->z aPt->c        

10+
numOfPoints

numOf
Components

             
  prop.closed prop.solid            
  numOfLists              
  prop.closed prop.solid            
  numOfPoints              
  anIndex              

example of a datafile Since the file is very long I have removed multiple lines where you see..<snip>..:

1
-1 1 -1 1 -0.998628 0.998628
-1*y^2+x^2
0 0 1.2 1 1 1 0.785398 -0.785398
0 0 400 400
0 9 1 0 27 0 0
-0.5 0.5 0.5 1
1 500
784
-1 -1 0 0.5
-0.925926 -1 -0.142661 0.428571
-0.851852 -1 -0.274348 0.362637
..<snip>..
0.851852 1 -0.274348 0.362637
0.925926 1 -0.142661 0.428571
1 1 0 0.5
1
0 0
28
0 0
28
0
1
...<snip>...
26
27
0 0
28
28
..<snip>..
54
55
0 0
28
56
..<snip>..
782
783
  

Graph file format:

xmin,ymin,xmax,ymax

xnorm,ynorm

 


metadata block
see also:
Correspondence about this page

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.