Forward compatibility: flex
[foam-extend-3.2.git] / applications / utilities / postProcessing / dataConversion / foamToTecplot360 / tecio / tecsrc / geom2.cpp
blob90eef5b7b71772f2da7f0c3c2ddaf94d61b975ff
1 /*
2 * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
4 * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
6 * Tecplot hereby grants OpenCFD limited authority to distribute without
7 * alteration the source code to the Tecplot Input/Output library, known
8 * as TecIO, as part of its distribution of OpenFOAM and the
9 * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
10 * granted access to the TecIO source code, and may redistribute it for the
11 * purpose of maintaining the converter. However, no authority is granted
12 * to alter the TecIO source code in any form or manner.
14 * This limited grant of distribution does not supersede Tecplot, Inc.'s
15 * copyright in TecIO. Contact Tecplot, Inc. for further information.
17 * Tecplot, Inc.
18 * 3535 Factoria Blvd, Ste. 550
19 * Bellevue, WA 98006, USA
20 * Phone: +1 425 653 1200
21 * http://www.tecplot.com/
24 #include "stdafx.h"
25 #include "MASTER.h"
26 #define TECPLOTENGINEMODULE
29 *****************************************************************
30 *****************************************************************
31 ******* ********
32 ****** Copyright (C) 1988-2008 Tecplot, Inc. *******
33 ******* ********
34 *****************************************************************
35 *****************************************************************
38 #define GEOM2MODULE
39 #include "GLOBAL.h"
40 #include "TASSERT.h"
41 #include "Q_UNICODE.h"
42 #include "ALLOC.h"
44 #include "GEOM.h"
45 #include "TEXT.h"
46 #include "STRUTIL.h"
47 #include "GEOM2.h"
49 #if defined TECPLOTKERNEL
50 /* CORE SOURCE CODE REMOVED */
51 #endif
52 #include "DATASET0.h"
55 #if defined TECPLOTKERNEL
56 /* CORE SOURCE CODE REMOVED */
57 # if 0 /* 3D geometry arrowheads are not drawn at this time. */
58 #endif
59 # if 0 /* 3D geometry arrowheads are not drawn at this time. */
60 # endif
61 #if 0
62 #endif
63 # ifndef NO_ASSERTS
64 # endif
65 # ifndef NO_ASSERTS
66 # endif
67 #endif /* TECPLOTKERNEL */
70 FieldDataType_e GetGeomFieldDataType(Geom_s const* Geom)
72 FieldDataType_e Result;
74 REQUIRE(VALID_REF(Geom));
75 REQUIRE(VALID_REF(Geom->GeomData.Generic.V1Base));
77 Result = Geom->DataType;
79 ENSURE(VALID_GEOM_FIELD_DATA_TYPE(Result));
81 * Check that the geom's field data arrays (if they exist)
82 * have the same type as the geometry.
84 ENSURE(IMPLICATION(VALID_REF(Geom->GeomData.Generic.V1Base), Result == GetFieldDataType(Geom->GeomData.Generic.V1Base)));
85 ENSURE(IMPLICATION(VALID_REF(Geom->GeomData.Generic.V2Base), Result == GetFieldDataType(Geom->GeomData.Generic.V2Base)));
86 ENSURE(IMPLICATION(VALID_REF(Geom->GeomData.Generic.V3Base), Result == GetFieldDataType(Geom->GeomData.Generic.V3Base)));
88 return Result;