#ifndef _STL_H #define _STL_H /** @brief STL ファイル入出力用ライブラリ ヘッダ @file STL.h @author Fumi.Iseki (C) @note エンディアン無変換 */ #include "exBrep.h" /// データ読み込み用一時データ typedef struct { unsigned char tmp[50]; } tmpSTLData; // 50Byte typedef struct { float vect[12]; unsigned short pad; } STLData; // 52Byte DllExport STLData* ReadSTLFile (char* fname, long int* fno); DllExport int WriteSTLFile(char* fname, SOLID* solid, bool ascii=false); DllExport STLData* ReadSTLFileA (char* fname, long int* fno); DllExport STLData* ReadSTLFileB (char* fname, long int* fno); DllExport int WriteSTLFileA(char* fname, SOLID* solid); DllExport int WriteSTLFileB(char* fname, SOLID* solid); DllExport void println_FacetAsciiSTL(CONTOUR* contour); DllExport void freeSTL(STLData* stldata); #endif