You are here: AGGeom » JavaView » JVSupportedFileFormats » JVBd

JVBd

An example for the .bd format.

Example: description file for a cube

#
# description file for a cube
#

# task
GEOMETRY;
# frame data
0; 3;           # current frame / number of frames
# parameter data
0; 0;           # number of integer and double parameters
# integer parameters

# double parameters

 6;             # number of patches, i.e. parts
 8;             # number of vertices
# vertex list
# (ix, iy, iz) (x, y, z) flags for each coord, coordinate vector of
# vertex the integers are flags: if a flag is !=0 this means
# that this component shall be time dependent, therefore
# a function ruler for this variable will be installed.
# if different the flags for different components are identical
# then these variable will be identified and controlled by the
# same function ruler. With this facility one can e.g. modify
# boundary lines or planes over the time
 0; 0; 0; 0.; 0.; 0.;
 0; 0; 0; 1.; 0.; 0.;
 0; 0; 0; 1.; 1.; 0.;
 0; 0; 0; 0.; 1.; 0.;
 0; 0; 0; 0.; 0.; 1.;
 0; 0; 0; 1.; 0.; 1.;
 0; 0; 0; 1.; 1.; 1.;
 0; 0; 0; 0.; 1.; 1.;
# patch list
# flag bnd_type points_per_patch {p0...pn} ulines vlines usub vsub
0; 0; 4;  0; 1; 2; 3;   4; 4; 0; 0;
0; 0; 4;  1; 0; 4; 5;   4; 4; 0; 0;
0; 0; 4;  7; 6; 5; 4;   4; 4; 0; 0;
0; 0; 4;  6; 7; 3; 2;   4; 4; 0; 0;
0; 0; 4;  6; 2; 1; 5;   4; 4; 0; 0;
0; 0; 4;  3; 7; 4; 0;   4; 4; 0; 0;

flag:             used to change orientation of a patch
bnd_type:         not used currently
points_per_patch: number of points for this patch
{p0, ..pn}:       indices of the vertices above which build up this patch
ulines:           number of lines between first and second vertex
vlines:           number of lines between second and third vertex
usub, vsub:       number of subdivisions between two lines
                  along u- or v-direction

Comments

 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback