If you want, I can make the blank to the following procedures. something like
to import:
procedure STLImport(filename:string);
begin
//read file and call
MaceTriangleInDrawing(x,y,z);//something like
end;
for export:
procedure STLExportHeader(filename:string);
begin
//write header
end;
procedure STLExportTriangle(x,y,z:double);//it will be called for each triangle in the drawing
begin
//write triangles
end;
procedure STLExportEnd;
begin
//write footer
end;
These procedures will be available from the zcad interface as import and export commands
Implementation of the file format I will not yet engaged. better I'll improve 3DFace, and maybe start implement the NURBS surfaces.