/* */ }
/* */ }
/* */
/* */ static void projectPoints(Triangulator triRef, int i1, int i2, Vector3f n3)
/* */ {
/* 146 */ Matrix4f matrix = new Matrix4f();
/* 147 */ Point3f vtx = new Point3f();
/* */
/* 154 */ Vector3f n1 = new Vector3f();
/* 155 */ Vector3f n2 = new Vector3f();
/* */
/* 160 */ if ((Math.abs(n3.x) > 0.1D) || (Math.abs(n3.y) > 0.1D)) {
/* 161 */ n1.x = (-n3.y);
/* 162 */ n1.y = n3.x;
/* 163 */ n1.z = 0.0F;
/* */ }
/* */ else {
/* 166 */ n1.x = n3.z;
/* 167 */ n1.z = (-n3.x);
/* 168 */ n1.y = 0.0F;
/* */ }
/* 170 */ double d = Basic.lengthL2(n1);
/* 171 */ Basic.divScalar(d, n1);
/* 172 */ Basic.vectorProduct(n1, n3, n2);
/* 173 */ d = Basic.lengthL2(n2);
/* 174 */ Basic.divScalar(d, n2);
/* */
/* 179 */ matrix.m00 = n1.x;
/* 180 */ matrix.m01 = n1.y;
/* 181 */ matrix.m02 = n1.z;
/* 182 */ matrix.m03 = 0.0F;
/* 183 */ matrix.m10 = n2.x;
/* 184 */ matrix.m11 = n2.y;
/* 185 */ matrix.m12 = n2.z;
/* 186 */ matrix.m13 = 0.0F;
/* 187 */ matrix.m20 = n3.x;
/* 188 */ matrix.m21 = n3.y;
/* 189 */ matrix.m22 = n3.z;
/* 190 */ matrix.m23 = 0.0F;
/* 191 */ matrix.m30 = 0.0F;
/* 192 */ matrix.m31 = 0.0F;
/* 193 */ matrix.m32 = 0.0F;
/* 194 */ matrix.m33 = 1.0F;
/* */
/* 201 */ triRef.initPnts(20);
/* 202 */ for (int i = i1; i < i2; i++) {
/* 203 */ int ind = triRef.loops[i];
/* 204 */ int ind1 = ind;
/* 205 */ int j1 = triRef.fetchData(ind1);
/* 206 */ matrix.transform(triRef.vertices[j1], vtx);
/* 207 */ j1 = triRef.storePoint(vtx.x, vtx.y);
/* 208 */ triRef.updateIndex(ind1, j1);
/* 209 */ ind1 = triRef.fetchNextData(ind1);
/* 210 */ j1 = triRef.fetchData(ind1);
/* 211 */ while (ind1 != ind) {
/* 212 */ matrix.transform(triRef.vertices[j1], vtx);
/* 213 */ j1 = triRef.storePoint(vtx.x, vtx.y);
/* 214 */ triRef.updateIndex(ind1, j1);
/* 215 */ ind1 = triRef.fetchNextData(ind1);
/* 216 */ j1 = triRef.fetchData(ind1);
/* */ }