30 : model(0), model_view(0)
32 strcpy_s(
name,
"Selection");
53 for (
int i = 0; i < p->
nverts; i++) {
54 int n = (i==p->
nverts-1) ? 0 : i+1;
66 for (
size_t i = 0; i <
verts.size(); i++) {
67 DWORD value =
verts[i];
68 WORD index = (WORD) (value >> 16);
69 WORD vert = (WORD) (value & 0xffff);
71 if (index < model->NumSurfaces()) {
83 handle[ 0] = (float) x1;
84 handle[ 1] = (float) y1;
85 handle[ 2] = (float) x2;
86 handle[ 3] = (float) y1;
88 handle[ 4] = (float) x2;
89 handle[ 5] = (float) y1;
90 handle[ 6] = (float) x2;
91 handle[ 7] = (float) y2;
93 handle[ 8] = (float) x2;
94 handle[ 9] = (float) y2;
95 handle[10] = (float) x1;
96 handle[11] = (float) y2;
98 handle[12] = (float) x1;
99 handle[13] = (float) y2;
100 handle[14] = (float) x1;
101 handle[15] = (float) y1;
109 vloc[0] = v +
Vec3(-1.0f, -1.0f, 0.0f);
110 vloc[1] = v + Vec3( 1.0f, -1.0f, 0.0f);
111 vloc[2] = v + Vec3( 1.0f, -1.0f, 0.0f);
112 vloc[3] = v + Vec3( 1.0f, 1.0f, 0.0f);
113 vloc[4] = v + Vec3( 1.0f, 1.0f, 0.0f);
114 vloc[5] = v + Vec3(-1.0f, 1.0f, 0.0f);
115 vloc[6] = v + Vec3(-1.0f, 1.0f, 0.0f);
116 vloc[7] = v + Vec3(-1.0f, -1.0f, 0.0f);
153 DWORD value = (s << 16) | v;
155 bool contains =
false;
156 for (
auto vi =
verts.begin(); vi !=
verts.end(); ++vi) {
164 verts.push_back(value);
170 DWORD value = (s << 16) | v;
172 for (
auto vi =
verts.begin(); vi !=
verts.end(); ++vi) {
183 DWORD value = (s << 16) | v;
185 for (
auto vi =
verts.begin(); vi !=
verts.end(); ++vi) {