MGF Format

MGF Format

Synopsis

Shape data here denotes 3D geometry data. The geometrical shape is defined in terms of the connectivity of vertices and surfaces. In MicroAVS, meshes, polygons, lines, spheres, circles, columns and polytriangles are the primitives available for creating geometrical shapes.

File Extension

The data file extension is ".mgf".

The simple step file format

The format of shape data is composed of a header, basic primitive type, primitive name, and data. All the data is in ASCII and is separated using spaces, tabs or the code for blank lines. Empty lines can be inserted as and when required. Further, the lines need not be left-justified.

# Micro AVS Geom:2.10
Basic Primitive Type
Primitive Name
Data
Data
.
.
.
Basic Primitive Type
Primitive Name
Data
Data
.
.
.

# Micro AVS Geom:2.10
This is the header that identifies a shape data file and must be present in the first line of the file.
Capitals, small letters and spaces must be defined precisely.

Basic Primitive Type
This name is defined uniquely for each primitive type. The types available are mesh, polygon, sphere and line, circle, column and polytriangle.

The names that identify these primitives are as given below:

Meshmesh
Polygondisjoint polygon or polyhedron
Spheresphere
Linedisjoint line or polyline
Circlecircle
Columncolumn
Polytrianglepolytri
Labellabel

Primitive Name
This refers to the name of the part. Define any name you want. However, the name should be within 30 characters and should not contain any spaces, tabs or return characters. Further, the primitive names cannot be duplicated.

Data
The format of this portion is different depending on the basic primitive name.


The time-dependent file format (Multistep)

Lines beginning with # are comments and are ignored. Comments on every step can be inserted after the step number. you must specify the first step as step1, the second step as step2 and so on.
# Micro AVS Geom:2.10
Number of steps
(Step Number) (comments)
Basic Primitive Type
Primitive Name
Data
Data
.
.
.
(Step Number) (comments)
Basic Primitive Type
Primitive Name
Data
Data
.
.
.

#Micro AVS Geom:2.10
Same means as simple step format.

Number of steps
Defines the number of steps in the file. If this line isn't exist, the format is recognized as the simple step format.

Step number
Specifies the step number at the begining of every step. For example, you must specify the first step as step1, the second step as step2 and so on.

Comments
Comments(optional) Comments on every step can be inserted after the step number.

Basic Primitive Type
Same means as simple step format.

Data
Same means as simple step format.


Addendum

By repeating sets of Basic primitive type name, primitive name and data, it is possible to describe data made up of multiple primitive types.


UP © 1998-2008 KGT Inc. All rights reserved.