17 #if !defined(OPENNURBS_THREEDM_INC_) 18 #define OPENNURBS_THREEDM_INC_ 66 #define TCODE_COMMENTBLOCK 0x00000001 67 #define TCODE_ENDOFFILE 0x00007FFF 68 #define TCODE_ENDOFFILE_GOO 0x00007FFE 75 #define TCODE_LEGACY_GEOMETRY 0x00010000 76 #define TCODE_OPENNURBS_OBJECT 0x00020000 77 #define TCODE_GEOMETRY 0x00100000 78 #define TCODE_ANNOTATION 0x00200000 79 #define TCODE_DISPLAY 0x00400000 80 #define TCODE_RENDER 0x00800000 81 #define TCODE_INTERFACE 0x02000000 82 #define TCODE_TOLERANCE 0x08000000 83 #define TCODE_TABLE 0x10000000 84 #define TCODE_TABLEREC 0x20000000 85 #define TCODE_USER 0x40000000 86 #define TCODE_SHORT 0x80000000 88 #define TCODE_CRC 0x8000 90 #define TCODE_ANONYMOUS_CHUNK (TCODE_USER | TCODE_CRC | 0x0000 ) 91 #define TCODE_UTF8_STRING_CHUNK (TCODE_USER | TCODE_CRC | 0x0001 ) 92 #define TCODE_MODEL_ATTRIBUTES_CHUNK (TCODE_USER | TCODE_CRC | 0x0002 ) 94 #define TCODE_DICTIONARY (TCODE_USER | TCODE_CRC | 0x0010) 95 #define TCODE_DICTIONARY_ID (TCODE_USER | TCODE_CRC | 0x0011) 96 #define TCODE_DICTIONARY_ENTRY (TCODE_USER | TCODE_CRC | 0x0012) 97 #define TCODE_DICTIONARY_END (TCODE_USER | TCODE_SHORT | 0x0013) 98 #define TCODE_XDATA (TCODE_USER | 0x0001) 108 #define TCODE_MATERIAL_TABLE (TCODE_TABLE | 0x0010) 109 #define TCODE_LAYER_TABLE (TCODE_TABLE | 0x0011) 110 #define TCODE_LIGHT_TABLE (TCODE_TABLE | 0x0012) 111 #define TCODE_OBJECT_TABLE (TCODE_TABLE | 0x0013) 112 #define TCODE_PROPERTIES_TABLE (TCODE_TABLE | 0x0014) 117 #define TCODE_SETTINGS_TABLE (TCODE_TABLE | 0x0015) 128 #define TCODE_BITMAP_TABLE (TCODE_TABLE | 0x0016) 129 #define TCODE_USER_TABLE (TCODE_TABLE | 0x0017) 131 #define TCODE_GROUP_TABLE (TCODE_TABLE | 0x0018) 133 #define TCODE_FONT_TABLE (TCODE_TABLE | 0x0019) 134 #define TCODE_DIMSTYLE_TABLE (TCODE_TABLE | 0x0020) 136 #define TCODE_INSTANCE_DEFINITION_TABLE (TCODE_TABLE | 0x0021) 138 #define TCODE_HATCHPATTERN_TABLE (TCODE_TABLE | 0x0022) 140 #define TCODE_LINETYPE_TABLE (TCODE_TABLE | 0x0023) 142 #define TCODE_OBSOLETE_LAYERSET_TABLE (TCODE_TABLE | 0x0024) 144 #define TCODE_TEXTURE_MAPPING_TABLE (TCODE_TABLE | 0x0025) 146 #define TCODE_HISTORYRECORD_TABLE (TCODE_TABLE | 0x0026) 148 #define TCODE_ENDOFTABLE 0xFFFFFFFF 151 #define TCODE_PROPERTIES_REVISIONHISTORY (TCODE_TABLEREC | TCODE_CRC | 0x0021) 152 #define TCODE_PROPERTIES_NOTES (TCODE_TABLEREC | TCODE_CRC | 0x0022) 153 #define TCODE_PROPERTIES_PREVIEWIMAGE (TCODE_TABLEREC | TCODE_CRC | 0x0023) 154 #define TCODE_PROPERTIES_APPLICATION (TCODE_TABLEREC | TCODE_CRC | 0x0024) 155 #define TCODE_PROPERTIES_COMPRESSED_PREVIEWIMAGE (TCODE_TABLEREC | TCODE_CRC | 0x0025) 156 #define TCODE_PROPERTIES_OPENNURBS_VERSION (TCODE_TABLEREC | TCODE_SHORT | 0x0026) 157 #define TCODE_PROPERTIES_AS_FILE_NAME (TCODE_TABLEREC | TCODE_CRC | 0x0027 ) 160 #define TCODE_SETTINGS_PLUGINLIST (TCODE_TABLEREC | TCODE_CRC | 0x0135) 161 #define TCODE_SETTINGS_UNITSANDTOLS (TCODE_TABLEREC | TCODE_CRC | 0x0031) 162 #define TCODE_SETTINGS_RENDERMESH (TCODE_TABLEREC | TCODE_CRC | 0x0032) 163 #define TCODE_SETTINGS_ANALYSISMESH (TCODE_TABLEREC | TCODE_CRC | 0x0033) 164 #define TCODE_SETTINGS_ANNOTATION (TCODE_TABLEREC | TCODE_CRC | 0x0034) 165 #define TCODE_SETTINGS_NAMED_CPLANE_LIST (TCODE_TABLEREC | TCODE_CRC | 0x0035) 166 #define TCODE_SETTINGS_NAMED_VIEW_LIST (TCODE_TABLEREC | TCODE_CRC | 0x0036) 167 #define TCODE_SETTINGS_VIEW_LIST (TCODE_TABLEREC | TCODE_CRC | 0x0037) 168 #define TCODE_SETTINGS_CURRENT_LAYER_INDEX (TCODE_TABLEREC | TCODE_SHORT | 0x0038) 169 #define TCODE_SETTINGS_CURRENT_MATERIAL_INDEX (TCODE_TABLEREC | TCODE_CRC | 0x0039) 170 #define TCODE_SETTINGS_CURRENT_COLOR (TCODE_TABLEREC | TCODE_CRC | 0x003A) 171 #define TCODE_SETTINGS__NEVER__USE__THIS (TCODE_TABLEREC | TCODE_CRC | 0x003E) 172 #define TCODE_SETTINGS_CURRENT_WIRE_DENSITY (TCODE_TABLEREC | TCODE_SHORT | 0x003C) 173 #define TCODE_SETTINGS_RENDER (TCODE_TABLEREC | TCODE_CRC | 0x003D) 174 #define TCODE_SETTINGS_GRID_DEFAULTS (TCODE_TABLEREC | TCODE_CRC | 0x003F) 175 #define TCODE_SETTINGS_MODEL_URL (TCODE_TABLEREC | TCODE_CRC | 0x0131) 176 #define TCODE_SETTINGS_CURRENT_FONT_INDEX (TCODE_TABLEREC | TCODE_SHORT | 0x0132) 177 #define TCODE_SETTINGS_CURRENT_DIMSTYLE_INDEX (TCODE_TABLEREC | TCODE_SHORT | 0x0133) 179 #define TCODE_SETTINGS_ATTRIBUTES (TCODE_TABLEREC | TCODE_CRC | 0x0134) 181 #define TCODE_SETTINGS_RENDER_USERDATA (TCODE_TABLEREC | TCODE_CRC | 0x0136) 184 #define TCODE_VIEW_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x003B) 186 #define TCODE_VIEW_CPLANE (TCODE_TABLEREC | TCODE_CRC | 0x013B) 187 #define TCODE_VIEW_VIEWPORT (TCODE_TABLEREC | TCODE_CRC | 0x023B) 188 #define TCODE_VIEW_SHOWCONGRID (TCODE_TABLEREC | TCODE_SHORT | 0x033B) 189 #define TCODE_VIEW_SHOWCONAXES (TCODE_TABLEREC | TCODE_SHORT | 0x043B) 190 #define TCODE_VIEW_SHOWWORLDAXES (TCODE_TABLEREC | TCODE_SHORT | 0x053B) 191 #define TCODE_VIEW_TRACEIMAGE (TCODE_TABLEREC | TCODE_CRC | 0x063B) 192 #define TCODE_VIEW_WALLPAPER (TCODE_TABLEREC | TCODE_CRC | 0x073B) 193 #define TCODE_VIEW_WALLPAPER_V3 (TCODE_TABLEREC | TCODE_CRC | 0x074B) 194 #define TCODE_VIEW_TARGET (TCODE_TABLEREC | TCODE_CRC | 0x083B) 195 #define TCODE_VIEW_V3_DISPLAYMODE (TCODE_TABLEREC | TCODE_SHORT | 0x093B) 196 #define TCODE_VIEW_NAME (TCODE_TABLEREC | TCODE_CRC | 0x0A3B) 197 #define TCODE_VIEW_POSITION (TCODE_TABLEREC | TCODE_CRC | 0x0B3B) 200 #define TCODE_VIEW_ATTRIBUTES (TCODE_TABLEREC | TCODE_CRC | 0x0C3B) 203 #define TCODE_VIEW_VIEWPORT_USERDATA (TCODE_TABLEREC | TCODE_CRC | 0x0D3B) 206 #define TCODE_BITMAP_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x0090) 209 #define TCODE_MATERIAL_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x0040) 212 #define TCODE_LAYER_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x0050) 215 #define TCODE_LIGHT_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x0060) 216 #define TCODE_LIGHT_RECORD_ATTRIBUTES (TCODE_INTERFACE | TCODE_CRC | 0x0061) 217 #define TCODE_LIGHT_RECORD_ATTRIBUTES_USERDATA (TCODE_INTERFACE | 0x0062) 219 #define TCODE_LIGHT_RECORD_END (TCODE_INTERFACE | TCODE_SHORT | 0x006F) 231 #define TCODE_USER_TABLE_UUID (TCODE_TABLEREC | TCODE_CRC | 0x0080) 233 #define TCODE_USER_TABLE_RECORD_HEADER (TCODE_TABLEREC | TCODE_CRC | 0x0082) 235 #define TCODE_USER_RECORD (TCODE_TABLEREC | 0x0081) 239 #define TCODE_GROUP_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x0073) 242 #define TCODE_FONT_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x0074) 245 #define TCODE_DIMSTYLE_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x0075) 248 #define TCODE_INSTANCE_DEFINITION_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x0076) 251 #define TCODE_HATCHPATTERN_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x0077) 254 #define TCODE_LINETYPE_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x0078) 257 #define TCODE_OBSOLETE_LAYERSET_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x0079) 260 #define TCODE_TEXTURE_MAPPING_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x007A) 263 #define TCODE_HISTORYRECORD_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x007B) 266 #define TCODE_OBJECT_RECORD (TCODE_TABLEREC | TCODE_CRC | 0x0070) 267 #define TCODE_OBJECT_RECORD_TYPE (TCODE_INTERFACE | TCODE_SHORT | 0x0071) 268 #define TCODE_OBJECT_RECORD_ATTRIBUTES (TCODE_INTERFACE | TCODE_CRC | 0x0072) 269 #define TCODE_OBJECT_RECORD_ATTRIBUTES_USERDATA (TCODE_INTERFACE | 0x0073) 270 #define TCODE_OBJECT_RECORD_HISTORY (TCODE_INTERFACE | TCODE_CRC | 0x0074) 271 #define TCODE_OBJECT_RECORD_HISTORY_HEADER (TCODE_INTERFACE | TCODE_CRC | 0x0075) 272 #define TCODE_OBJECT_RECORD_HISTORY_DATA (TCODE_INTERFACE | TCODE_CRC | 0x0076) 273 #define TCODE_OBJECT_RECORD_END (TCODE_INTERFACE | TCODE_SHORT | 0x007F) 278 // TCODE_OBJECT_RECORD
279 // 4 byte length of entire object record
281 // TCODE_OBJECT_RECORD_TYPE required - used to quickly filter and skip unwanted objects
282 // 4 byte ON::object_type
284 // TCODE_OPENNURBS_CLASS
286 // TCODE_OPENNURBS_CLASS_UUID
287 // 4 byte length = 20
288 // value of ON_ClassId::m_uuid for this class
290 // TCODE_OPENNURBS_CLASS_DATA
292 // class specific data for geometry or annotation object
294 // TCODE_OPENNURBS_CLASS_USERDATA (1 chunk per piece of user data)
296 // 2 byte chunk version 2.1
297 // TCODE_OPENNURBS_CLASS_USERDATA_HEADER
299 // 16 byte value of ON_ClassId::m_uuid for this child class of ON_UserData
300 // 16 byte value of ON_UserData::m_userdata_uuid
301 // 4 byte value of ON_UserData::m_userdata_copycount
302 // 128 byte value of ON_UserData::m_userdata_xform
303 // 16 byte value of ON_UserData::m_application_uuid (in ver 2.1 chunks)
304 // TCODE_ANONYMOUS_CHUNK
306 // specific user data
307 // TCODE_OPENNURBS_CLASS_END
309 // TCODE_OBJECT_RECORD_ATTRIBUTES (optional)
311 // ON_3dmObjectAttributes information
314 // TCODE_OBJECT_RECORD_ATTRIBUTES_USERDATA (optional)
316 // TCODE_OPENNURBS_CLASS_USERDATA (1 chunk per piece of user data)
318 // 2 byte chunk version 2.1
319 // TCODE_OPENNURBS_CLASS_USERDATA_HEADER
321 // 16 byte value of ON_ClassId::m_uuid for this child class of ON_UserData
322 // 16 byte value of ON_UserData::m_userdata_uuid
323 // 4 byte value of ON_UserData::m_userdata_copycount
324 // 128 byte value of ON_UserData::m_userdata_xform
325 // 16 byte value of ON_UserData::m_application_uuid (in ver 2.1 chunks)
326 // TCODE_ANONYMOUS_CHUNK
328 // specific user data
330 // TCODE_OBJECT_RECORD_HISTORY (optional) construction history
332 // 2 byte chunk version
333 // TCODE_OBJECT_RECORD_HISTORY_HEADER
335 // 2 byte chunk version
338 // TCODE_OBJECT_RECORD_HISTORY_DATA
340 // 2 byte chunk version
344 // TCODE_OBJECT_RECORD_END required - marks end of object record
349 #define TCODE_OPENNURBS_CLASS (TCODE_OPENNURBS_OBJECT | 0x7FFA) 350 #define TCODE_OPENNURBS_CLASS_UUID (TCODE_OPENNURBS_OBJECT | TCODE_CRC | 0x7FFB) 351 #define TCODE_OPENNURBS_CLASS_DATA (TCODE_OPENNURBS_OBJECT | TCODE_CRC | 0x7FFC) 352 #define TCODE_OPENNURBS_CLASS_USERDATA (TCODE_OPENNURBS_OBJECT | 0x7FFD) 353 #define TCODE_OPENNURBS_CLASS_USERDATA_HEADER (TCODE_OPENNURBS_OBJECT | TCODE_CRC | 0x7FF9) 354 #define TCODE_OPENNURBS_CLASS_END (TCODE_OPENNURBS_OBJECT | TCODE_SHORT | 0x7FFF) 359 // TCODE_OPENNURBS_CLASS
360 // length of entire openNURBS class object chunk
362 // TCODE_OPENNURBS_CLASS_UUID
363 // length of uuid (16 byte UUID + 4 byte CRC)
364 // 16 byte UUID ( a.k.a. GUID ) openNURBS class ID - determines specific openNURBS class
365 // 4 bytes (32 bit CRC of the UUID)
367 // TCODE_OPENNURBS_CLASS_DATA
368 // length of object data
369 // ... data that defines object
370 // use ON_classname::Read() to read this data and ON_classname::Write()
371 // to write this data
372 // 4 bytes (32 bit CRC of the object data)
374 // TCODE_OPENNURBS_CLASS_USERDATA ( 0 or more user data chunks)
376 // TCODE_OPENNURBS_CLASS_END
386 // The TCODEs below were used in the version 1 file format and are needed so that
387 // the these files can be read and (optionally) written by the current OpenNURBS
395 #define TCODE_ANNOTATION_SETTINGS (TCODE_ANNOTATION | 0x0001) 397 #define TCODE_TEXT_BLOCK (TCODE_ANNOTATION | 0x0004) 398 #define TCODE_ANNOTATION_LEADER (TCODE_ANNOTATION | 0x0005) 399 #define TCODE_LINEAR_DIMENSION (TCODE_ANNOTATION | 0x0006) 400 #define TCODE_ANGULAR_DIMENSION (TCODE_ANNOTATION | 0x0007) 401 #define TCODE_RADIAL_DIMENSION (TCODE_ANNOTATION | 0x0008) 404 #define TCODE_RHINOIO_OBJECT_NURBS_CURVE (TCODE_OPENNURBS_OBJECT | 0x0008) 405 #define TCODE_RHINOIO_OBJECT_NURBS_SURFACE (TCODE_OPENNURBS_OBJECT | 0x0009) 406 #define TCODE_RHINOIO_OBJECT_BREP (TCODE_OPENNURBS_OBJECT | 0x000B) 407 #define TCODE_RHINOIO_OBJECT_DATA (TCODE_OPENNURBS_OBJECT | 0xFFFE) 408 #define TCODE_RHINOIO_OBJECT_END (TCODE_OPENNURBS_OBJECT | 0xFFFF) 411 #define TCODE_OPENNURBS_BUFFER (TCODE_OPENNURBS_OBJECT | TCODE_CRC | 0x0100) 414 #define TCODE_LEGACY_ASM (TCODE_LEGACY_GEOMETRY | 0x0001) 415 #define TCODE_LEGACY_PRT (TCODE_LEGACY_GEOMETRY | 0x0002) 416 #define TCODE_LEGACY_SHL (TCODE_LEGACY_GEOMETRY | 0x0003) 417 #define TCODE_LEGACY_FAC (TCODE_LEGACY_GEOMETRY | 0x0004) 418 #define TCODE_LEGACY_BND (TCODE_LEGACY_GEOMETRY | 0x0005) 419 #define TCODE_LEGACY_TRM (TCODE_LEGACY_GEOMETRY | 0x0006) 420 #define TCODE_LEGACY_SRF (TCODE_LEGACY_GEOMETRY | 0x0007) 421 #define TCODE_LEGACY_CRV (TCODE_LEGACY_GEOMETRY | 0x0008) 422 #define TCODE_LEGACY_SPL (TCODE_LEGACY_GEOMETRY | 0x0009) 423 #define TCODE_LEGACY_PNT (TCODE_LEGACY_GEOMETRY | 0x000A) 425 #define TCODE_STUFF 0x0100 427 #define TCODE_LEGACY_ASMSTUFF (TCODE_LEGACY_GEOMETRY | TCODE_STUFF | TCODE_LEGACY_ASM) 428 #define TCODE_LEGACY_PRTSTUFF (TCODE_LEGACY_GEOMETRY | TCODE_STUFF | TCODE_LEGACY_PRT) 429 #define TCODE_LEGACY_SHLSTUFF (TCODE_LEGACY_GEOMETRY | TCODE_STUFF | TCODE_LEGACY_SHL) 430 #define TCODE_LEGACY_FACSTUFF (TCODE_LEGACY_GEOMETRY | TCODE_STUFF | TCODE_LEGACY_FAC) 431 #define TCODE_LEGACY_BNDSTUFF (TCODE_LEGACY_GEOMETRY | TCODE_STUFF | TCODE_LEGACY_BND) 432 #define TCODE_LEGACY_TRMSTUFF (TCODE_LEGACY_GEOMETRY | TCODE_STUFF | TCODE_LEGACY_TRM) 433 #define TCODE_LEGACY_SRFSTUFF (TCODE_LEGACY_GEOMETRY | TCODE_STUFF | TCODE_LEGACY_SRF) 434 #define TCODE_LEGACY_CRVSTUFF (TCODE_LEGACY_GEOMETRY | TCODE_STUFF | TCODE_LEGACY_CRV) 435 #define TCODE_LEGACY_SPLSTUFF (TCODE_LEGACY_GEOMETRY | TCODE_STUFF | TCODE_LEGACY_SPL) 436 #define TCODE_LEGACY_PNTSTUFF (TCODE_LEGACY_GEOMETRY | TCODE_STUFF | TCODE_LEGACY_PNT) 439 #define TCODE_RH_POINT (TCODE_GEOMETRY | 0x0001) 441 #define TCODE_RH_SPOTLIGHT (TCODE_RENDER | 0x0001) 443 #define TCODE_OLD_RH_TRIMESH (TCODE_GEOMETRY | 0x0011) 444 #define TCODE_OLD_MESH_VERTEX_NORMALS (TCODE_GEOMETRY | 0x0012) 445 #define TCODE_OLD_MESH_UV (TCODE_GEOMETRY | 0x0013) 446 #define TCODE_OLD_FULLMESH (TCODE_GEOMETRY | 0x0014) 449 #define TCODE_MESH_OBJECT (TCODE_GEOMETRY | 0x0015) 450 #define TCODE_COMPRESSED_MESH_GEOMETRY (TCODE_GEOMETRY | 0x0017) 451 #define TCODE_ANALYSIS_MESH (TCODE_GEOMETRY | 0x0018) 453 #define TCODE_NAME (TCODE_INTERFACE | 0x0001) 454 #define TCODE_VIEW (TCODE_INTERFACE | 0x0002) 455 #define TCODE_CPLANE (TCODE_INTERFACE | 0x0003) 457 #define TCODE_NAMED_CPLANE (TCODE_INTERFACE | 0x0004) 458 #define TCODE_NAMED_VIEW (TCODE_INTERFACE | 0x0005) 459 #define TCODE_VIEWPORT (TCODE_INTERFACE | 0x0006) 461 #define TCODE_SHOWGRID (TCODE_SHORT | TCODE_INTERFACE | 0x0007) 462 #define TCODE_SHOWGRIDAXES (TCODE_SHORT | TCODE_INTERFACE | 0x0008) 463 #define TCODE_SHOWWORLDAXES (TCODE_SHORT | TCODE_INTERFACE | 0x0009) 465 #define TCODE_VIEWPORT_POSITION (TCODE_INTERFACE | 0x000A) 466 #define TCODE_VIEWPORT_TRACEINFO (TCODE_INTERFACE | 0x000B) 467 #define TCODE_SNAPSIZE (TCODE_INTERFACE | 0x000C) 468 #define TCODE_NEAR_CLIP_PLANE (TCODE_INTERFACE | 0x000D) 469 #define TCODE_HIDE_TRACE (TCODE_INTERFACE | 0x000E) 471 #define TCODE_NOTES (TCODE_INTERFACE | 0x000F) 472 #define TCODE_UNIT_AND_TOLERANCES (TCODE_INTERFACE | 0x0010) 474 #define TCODE_MAXIMIZED_VIEWPORT (TCODE_SHORT | TCODE_INTERFACE | 0x0011) 475 #define TCODE_VIEWPORT_WALLPAPER (TCODE_INTERFACE | 0x0012) 478 #define TCODE_SUMMARY (TCODE_INTERFACE | 0x0013) 479 #define TCODE_BITMAPPREVIEW (TCODE_INTERFACE | 0x0014) 480 #define TCODE_VIEWPORT_V1_DISPLAYMODE (TCODE_SHORT | TCODE_INTERFACE | 0x0015) 483 #define TCODE_LAYERTABLE (TCODE_SHORT | TCODE_TABLE | 0x0001) 484 #define TCODE_LAYERREF (TCODE_SHORT | TCODE_TABLEREC | 0x0001) 486 #define TCODE_RGB (TCODE_SHORT | TCODE_DISPLAY | 0x0001) 487 #define TCODE_TEXTUREMAP (TCODE_DISPLAY | 0x0002) 488 #define TCODE_BUMPMAP (TCODE_DISPLAY | 0x0003) 489 #define TCODE_TRANSPARENCY (TCODE_SHORT | TCODE_DISPLAY | 0x0004) 490 #define TCODE_DISP_AM_RESOLUTION (TCODE_SHORT | TCODE_DISPLAY | 0x0005) 491 #define TCODE_RGBDISPLAY (TCODE_SHORT | TCODE_DISPLAY | 0x0006) 492 #define TCODE_RENDER_MATERIAL_ID (TCODE_DISPLAY | 0x0007) 494 #define TCODE_LAYER (TCODE_DISPLAY | 0x0010) 497 #define TCODE_LAYER_OBSELETE_1 (TCODE_SHORT | TCODE_DISPLAY | 0x0013) 498 #define TCODE_LAYER_OBSELETE_2 (TCODE_SHORT | TCODE_DISPLAY | 0x0014) 499 #define TCODE_LAYER_OBSELETE_3 (TCODE_SHORT | TCODE_DISPLAY | 0x0015) 502 #define TCODE_LAYERON (TCODE_SHORT | TCODE_DISPLAY | 0x0016) 503 #define TCODE_LAYERTHAWED (TCODE_SHORT | TCODE_DISPLAY | 0x0017) 504 #define TCODE_LAYERLOCKED (TCODE_SHORT | TCODE_DISPLAY | 0x0018) 507 #define TCODE_LAYERVISIBLE (TCODE_SHORT | TCODE_DISPLAY | 0x0012) 508 #define TCODE_LAYERPICKABLE (TCODE_SHORT | TCODE_DISPLAY | 0x0030) 509 #define TCODE_LAYERSNAPABLE (TCODE_SHORT | TCODE_DISPLAY | 0x0031) 510 #define TCODE_LAYERRENDERABLE (TCODE_SHORT | TCODE_DISPLAY | 0x0032) 514 #define TCODE_LAYERSTATE (TCODE_SHORT | TCODE_DISPLAY | 0x0033) 515 #define TCODE_LAYERINDEX (TCODE_SHORT | TCODE_DISPLAY | 0x0034) 516 #define TCODE_LAYERMATERIALINDEX (TCODE_SHORT | TCODE_DISPLAY | 0x0035) 518 #define TCODE_RENDERMESHPARAMS (TCODE_DISPLAY | 0x0020) 522 #define TCODE_DISP_CPLINES (TCODE_SHORT | TCODE_DISPLAY | 0x0022) 523 #define TCODE_DISP_MAXLENGTH (TCODE_DISPLAY | 0x0023) 525 #define TCODE_CURRENTLAYER (TCODE_SHORT | TCODE_DISPLAY | 0x0025 ) 527 #define TCODE_LAYERNAME (TCODE_DISPLAY | 0x0011) 529 #define TCODE_LEGACY_TOL_FIT (TCODE_TOLERANCE | 0x0001) 530 #define TCODE_LEGACY_TOL_ANGLE (TCODE_TOLERANCE | 0x0002)