aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_def.h
blob: d64d2ab95c5b93432451a28bc7b0c278ca09bf4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* $Id:$ */

/*
    libg3d - 3D object loading library

    Copyright (C) 2005-2009  Markus Dahms <mad@automagically.de>

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
#ifndef _IMP_DXF_DEF_H
#define _IMP_DXF_DEF_H

#define DXF_MAX_LINE 512
#define DXF_CODE_INVALID 0xDEADBEEF

#define DXF_ID_HEADER	0x00FF0000
#define DXF_ID_TABLES	0x00FF0001
#define DXF_ID_ENTITIES	0x00FF0002
#define DXF_ID_BLOCKS   0x00FF0003
#define DXF_ID_OBJECTS  0x00FF0004
#define DXF_ID_CLASSES  0x00FF0005

#define DXF_E_3DFACE         0x0001
#define DXF_E_POLYLINE       0x0002
#define DXF_E_VERTEX         0x0003
#define DXF_E_BLOCK          0x0004
#define DXF_E_INSERT         0x0005
#define DXF_E_OTHER          0xFFFF

#define DXF_POLY_CLOSED             1
#define DXF_POLY_CURVE_FIT_ADDED    2
#define DXF_POLY_SPLINE_FIT_ADDED   4
#define DXF_POLY_3D_POLYLINE        8
#define DXF_POLY_3D_POLYMESH       16
#define DXF_POLY_N_CLOSED          32
#define DXF_POLY_POLYFACE          64
#define DXF_POLY_LT_PATTERN       128

#endif /* _IMP_DXF_DEF_H */