32 static char THIS_FILE[] = __FILE__;
40 : x_major(0), y_major(0), x_minor(0), y_minor(0),
41 bmp_plan(0), bmp_front(0), bmp_side(0)
136 for (
int i = 0; i < 4; i++)
143 origin[0].
x += -EXTENT;
144 origin[1].
x += EXTENT;
145 origin[2].
y += -EXTENT;
146 origin[3].
y += EXTENT;
149 float x = (float) (i-MAJOR_COUNT) * 64.0f;
150 float y = (float) (i-MAJOR_COUNT) * 64.0f;
161 origin[0].
x += -EXTENT;
162 origin[1].
x += EXTENT;
163 origin[2].
z += -EXTENT;
164 origin[3].
z += EXTENT;
167 float x = (float) (i-MAJOR_COUNT) * 64.0f;
168 float z = (float) (i-MAJOR_COUNT) * 64.0f;
179 origin[0].
y += -EXTENT;
180 origin[1].
y += EXTENT;
181 origin[2].
z += -EXTENT;
182 origin[3].
z += EXTENT;
185 float y = (float) (i-MAJOR_COUNT) * 64.0f;
186 float z = (float) (i-MAJOR_COUNT) * 64.0f;
231 float vx = (float) bmp->
Width();
232 float vy = (float) bmp->
Height();
235 if (vx <= 256 || vy <= 256) {
242 nrm =
Vec3(0.0f, 0.0f, 1.0f);
244 vset.
loc[1] =
loc + Vec3( vx, -vy, vz);
245 vset.
loc[2] =
loc + Vec3( vx, vy, vz);
246 vset.
loc[3] =
loc + Vec3(-vx, vy, vz);
250 nrm = Vec3(0.0f, 1.0f, 0.0f);
251 vset.
loc[0] =
loc + Vec3(-vx, vz, vy);
252 vset.
loc[1] =
loc + Vec3( vx, vz, vy);
253 vset.
loc[2] =
loc + Vec3( vx, vz, -vy);
254 vset.
loc[3] =
loc + Vec3(-vx, vz, -vy);
258 nrm = Vec3(1.0f, 0.0f, 0.0f);
259 vset.
loc[0] =
loc + Vec3( vz, -vx, -vy);
260 vset.
loc[1] =
loc + Vec3( vz, vx, -vy);
261 vset.
loc[2] =
loc + Vec3( vz, vx, vy);
262 vset.
loc[3] =
loc + Vec3( vz, -vx, vy);