/* */ }
/* */
/* 1174 */ NormalGenerator ng = null;
/* 1175 */ if (gen_norms) ng = new NormalGenerator(this.radians);
/* */
/* 1177 */ Stripifier strippy = null;
/* 1178 */ if ((this.flags & 0x200) != 0) strippy = new Stripifier();
/* */
/* 1180 */ long t1 = 0L; long t2 = 0L; long t3 = 0L; long t4 = 0L;
/* */
/* 1183 */ Iterator e = this.triGroups.keySet().iterator();
/* 1184 */ while (e.hasNext())
/* */ {
/* 1186 */ String curname = (String)e.next();
/* 1187 */ ArrayList triList = (ArrayList)this.triGroups.get(curname);
/* */
/* 1190 */ if (triList.size() > 0)
/* */ {
/* 1192 */ GeometryInfo gi = new GeometryInfo(1);
/* */
/* 1194 */ gi.setCoordinateIndices(groupIndices(this.coordIdxList, triList));
/* 1195 */ gi.setCoordinates(this.coordArray);
/* */
/* 1197 */ if (do_tex) {
/* 1198 */ gi.setTextureCoordinateParams(1, 2);
/* 1199 */ gi.setTextureCoordinates(0, this.texArray);
/* 1200 */ gi.setTextureCoordinateIndices(0, groupIndices(this.texIdxList, triList));
/* */ }
/* */
/* 1204 */ if (gen_norms) {
/* 1205 */ if ((this.flags & 0x100) != 0) gi.reverse();
/* 1206 */ ng.generateNormals(gi);
/* */ }
/* */ else
/* */ {
/* 1213 */ gi.setNormalIndices(groupIndices(this.normIdxList, triList));
/* 1214 */ gi.setNormals(this.normArray);
/* 1215 */ if ((this.flags & 0x100) != 0) gi.reverse();
/* */ }
/* */
/* 1218 */ if ((this.flags & 0x200) != 0) {
/* 1219 */ strippy.stripify(gi);
/* */ }
/* */
/* 1228 */ Shape3D shape = new Shape3D();
/* */
/* 1230 */ shape.setGeometry(gi.getGeometryArray(true, true, false));