00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef __GEO_PrimType_h__
00029 #define __GEO_PrimType_h__
00030
00031 #include <GB/GB_Defines.h>
00032
00033
00034
00035 #define GEOFACE 0x0000000f
00036 #define GEOPRIMPOLY 0x00000001 // Polygon
00037 #define GEOPRIMPOLYN "Poly"
00038 #define GEOPRIMNURBCURVE 0x00000002 // NURB Curve
00039 #define GEOPRIMNURBCURVEN "NURBCurve"
00040 #define GEOPRIMBEZCURVE 0x00000004 // Rational Bezier Curve
00041 #define GEOPRIMBEZCURVEN "BezierCurve"
00042
00043 #define GEOCURVE (GEOPRIMNURBCURVE|GEOPRIMBEZCURVE)
00044
00045
00046
00047 #define GEOHULL 0x000000f0
00048 #define GEOPRIMMESH 0x00000010 // Linear patch
00049 #define GEOPRIMMESHN "Mesh"
00050 #define GEOPRIMNURBSURF 0x00000020 // NURB Surface
00051 #define GEOPRIMNURBSURFN "NURBMesh"
00052 #define GEOPRIMBEZSURF 0x00000040 // Rational Bezier Surface
00053 #define GEOPRIMBEZSURFN "BezierMesh"
00054
00055 #define GEOTPSURF (GEOPRIMNURBSURF|GEOPRIMBEZSURF)
00056 #define GEOSPLINE (GEOCURVE|GEOTPSURF)
00057
00058
00059
00060 #define GEOPRIMPASTESURF 0x00000f00 // TPsurf Paste Hierarchy
00061 #define GEOPRIMPASTESURFN "PasteSurf"
00062
00063
00064
00065 #define GEOPRIMQUADRIC 0x00007000 // All Quadric primitives
00066 #define GEOPRIMCIRCLE 0x00001000 // Ellipse/Circle
00067 #define GEOPRIMCIRCLEN "Circle"
00068 #define GEOPRIMSPHERE 0x00002000 // Ellipsoid/Sphere
00069 #define GEOPRIMSPHEREN "Sphere"
00070 #define GEOPRIMTUBE 0x00004000 // Cylinder
00071 #define GEOPRIMTUBEN "Tube"
00072
00073
00074
00075 #define GEOPRIMPART 0x00008000 // Particle
00076 #define GEOPRIMPARTN "Part"
00077
00078
00079
00080 #define GEOPRIMMETA 0x00f00000 // All meta primitives
00081 #define GEOPRIMMETABALL 0x00100000 // Meta-ball
00082 #define GEOPRIMMETABALLN "MetaBall"
00083 #define GEOPRIMMETASQUAD 0x00200000 // Super quadric
00084 #define GEOPRIMMETASQUADN "MetaSQuad"
00085 #define GEOPRIMMETALINE 0x00300000 // Meta-line
00086 #define GEOPRIMMETALINEN "MetaLine"
00087 #define GEOPRIMMETABEZ 0x00400000 // Meta-bezier
00088 #define GEOPRIMMETABEZN "MetaBezier"
00089 #define GEOPRIMMETATRI 0x00500000 // Meta-triangle
00090 #define GEOPRIMMETATRIN "MetaTriangle"
00091
00092
00093
00094
00095 #define GEOPRIMOTHER 0xff000000 // All Miscelleneous primitives
00096 #define GEOPRIMTRIFAN 0x10000000 // Triangle fans.
00097 #define GEOPRIMTRIFANN "TriFan"
00098 #define GEOPRIMTRISTRIP 0x20000000 // Generalized triangle strips
00099 #define GEOPRIMTRISTRIPN "TriStrip"
00100 #define GEOPRIMTRIBEZIER 0x30000000 // Triangular beziers
00101 #define GEOPRIMTRIBEZIERN "TriBezier"
00102 #define GEOPRIMVOLUME 0x40000000 // Voxel volume.
00103 #define GEOPRIMVOLUMEN "Volume"
00104
00105 #define GEOPRIMALL GBPRIMALL // All primitive types
00106
00107
00108
00109
00110 #define GEOPRIMU (GEOFACE | GEOPRIMPART)
00111 #define GEOPRIMUV (GEOPRIMALL & ~GEOPRIMU)
00112
00113 #endif