11 #include "vtdata/Icosa.h"
12 #include "vtdata/Features.h"
14 #include "TimeEngines.h"
26 void DestructGeometry();
49 GEODESIC, INDEPENDENT_GEODESIC, RIGHT_TRIANGLE, DYMAX_UNFOLD
57 Style style = GEODESIC);
58 void Create(
int iTriangleCount,
vtImage **images, Style style);
60 vtGroup *GetSurface() {
return m_SurfaceGroup; }
65 void SetCulling(
bool bCull);
66 void SetLighting(
bool bLight);
67 void SetTime(
const vtTime &time);
68 void ShowAxis(
bool bShow);
69 void SetSeasonalTilt(
bool bTilt) { m_bTilt = bTilt; }
70 bool GetSeasonalTilt() {
return m_bTilt; }
71 FQuat GetRotation() {
return m_Rotation; }
75 int AddGlobeFeatures(
const char *fname,
float fSize);
103 void CreateMeshMat(
int iTriangleCount);
106 void CreateCoreMaterials();
109 int GetMFace(
int face,
int subface);
110 void BuildSphericalFeatures(
GlobeLayer *glay,
float fSize);
111 void BuildSphericalPoints(
GlobeLayer *glay,
float fSize);
112 void BuildSphericalLines(
GlobeLayer *glay,
float fSize);
113 void BuildSphericalPolygons(
GlobeLayer *glay,
float fSize);
114 void BuildFlatFeatures(
GlobeLayer *glay,
float fSize);
115 void BuildFlatPoint(
GlobeLayer *glay,
int i,
float fSize);
117 void FindLocalOrigin(
int mface);
118 void SetMeshConnect(
int mface);
120 void EstimateTesselation(
int iTriangleCount);
121 void CreateUnfoldableDymax();
122 void CreateNormalSphere();
123 void CreateIndependentGeodesicSphere();
126 void add_face1(
vtMesh *
mesh,
int face,
bool second);
127 void set_face_verts1(
vtMesh *geom,
int face,
float f);
130 void add_face2(
vtMesh *
mesh,
int face,
int mface,
int subfaces,
bool second);
131 void set_face_verts2(
vtMesh *geom,
int face,
float f);
132 void add_subface(
vtMesh *
mesh,
int face,
int v0,
int v1,
int v2,
133 bool flip,
int depth);
134 void refresh_face_positions(
vtMesh *
mesh,
int mface,
float f);
137 void create_independent_face(
int face,
bool second);
138 void add_face_independent_meshes(
int pair,
int face,
bool second);
140 vtIcoGlobe::Style m_style;
148 std::vector<int> m_globe_mat;
152 std::vector<vtMesh*> m_mesh;