The 3d face format

Provides ASCII import and export of 3dface entities with layer information.

Input format

Arbitrary comment lines start with the character 'C', all other lines are split at the specified delimiter. Empty lines are not feasible.

The first term must be the valid AutoCAD layer name of the 3d face. The UCS x, y and z coordinates of each vertex follow. Note that an AutoCAD 3dface entity has always four vertices.  To describe a triangular face, the third and fourth vertex must be identical.

 

C Arbitrary comments go after ‘C’

C Format: Layername, x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4

tri,  1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 7.0, 8.0, 9.0,

quad, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0,10.0,11.0,12.0,

Example output

The first line of the file is a comment line containing the file name and file generation date. The second line is a comment line containing format information. All other lines are data lines containing the x, y and z coordinates of all four vertices columnwise using the specified number of decimal digits (i.e. the number of decimal digits after the decimal separator) and column width. The columns are separated by the specified delimiter. Coordinates refer to UCS.

If the length of a formatted coordinate is greater than the specified column width, the respective cell is filled with the character '*'. A warning message is displayed. In this case, increase the column width or decrease the number of decimals.

 

C c:\tmp\faces.3df generated 01.09.2010 13:55:59

C Format: Layername, x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4

tri,  1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 7.0, 8.0, 9.0,

quad, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0,10.0,11.0,12.0,

 

More:

Import a 3d face format file

Export to a 3d face format file