Changeset 985 for GTP/trunk/Lib/Geom/shared/GeoTool/src
- Timestamp:
- 05/24/06 13:48:26 (19 years ago)
- Location:
- GTP/trunk/Lib/Geom/shared/GeoTool/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshLoader.cpp
r980 r985 41 41 GeometryElement aux; 42 42 int i; 43 bool encontrado;43 bool found; 44 44 VertexElementType vType; 45 45 46 46 i = 0; 47 encontrado= false;47 found = false; 48 48 49 49 // VertexElementSemantic vSemantic; … … 55 55 56 56 vType = static_cast<VertexElementType>(aux.type); 57 58 /*59 if (vType == VET_FLOAT3)60 {61 printf("%u es float3 ",aux.type);62 }63 64 if (vType == VET_FLOAT4)65 {66 printf("%u es float4 ",aux.type);67 }68 69 if (vType == VET_FLOAT2)70 {71 printf("%u es float2 ",aux.type);72 }73 */74 57 75 58 // unsigned short semantic; // VertexElementSemantic … … 94 77 fread(&aux.index,sizeof(unsigned short),1,f); 95 78 96 while ((i < list.size()) && (! encontrado))79 while ((i < list.size()) && (!found)) 97 80 { 98 81 if (list[i].source==source) 99 82 { 100 encontrado= true;83 found = true; 101 84 } 102 85 else … … 106 89 } 107 90 108 if ( encontrado)91 if (found) 109 92 { 110 93 list[i].list.push_back(aux); … … 169 152 float aux; 170 153 int k; 171 bool encontrado;154 bool found; 172 155 float x,y,z; 173 156 SubMesh *geoSubMesh; … … 176 159 i = 0; 177 160 k = 0; 178 encontrado= false;161 found = false; 179 162 180 163 if (option == GEOMESH_BUILD) … … 215 198 } 216 199 217 while ((i<list.size())&&(! encontrado))200 while ((i<list.size())&&(!found)) 218 201 { 219 202 if (list[i].source == bindIndex) 220 203 { 221 encontrado= true;204 found = true; 222 205 } 223 206 else … … 227 210 } 228 211 229 if ( encontrado)212 if (found) 230 213 { 231 214 for (k = 0; k < numVertices; k++) … … 455 438 } 456 439 457 /* 458 if (idx32bit) 459 { 460 printf("\tSon 32 bits por indice\n"); 461 } 462 else 463 { 464 printf("\tSon 16 bits por indice\n"); 465 } 466 */ 467 468 //Sumo uno a los vertices porque en el obj no puede hacer un vertice 0 440 469 441 if (idx32bit) 470 442 { … … 712 684 // << endl; 713 685 714 //OSCAR715 686 readMeshBoneAssignment(f, geoMesh, option); 716 687 -
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshSaver.cpp
r980 r985 308 308 309 309 310 // Calc the size in bytes of the geometry chunk.310 // Calculate the size in bytes of the geometry chunk. 311 311 size = calcGeometrySize(vertexBuffer); 312 312 … … 530 530 } 531 531 532 // Calc the mesh size in bytes.532 // Calculate the mesh size in bytes. 533 533 size_t GeoMeshSaver::calcMeshSize(const Mesh *geoMesh) 534 534 { 535 535 size_t size = CHUNK_OVERHEAD_SIZE; 536 536 537 // Num shared vertices537 // Number of shared vertices 538 538 size += sizeof(uint32); 539 539 … … 602 602 } 603 603 604 // Calc the geometry size in bytes.604 // Calculate the geometry size in bytes. 605 605 size_t GeoMeshSaver::calcGeometrySize(const VertexBuffer* vertexBuffer) 606 606 { -
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshView.cpp
r980 r985 197 197 198 198 //--------------------------------------------------------------------------- 199 // JGA200 199 // Set the color to the submesh sumbmeshIndex 201 200 //--------------------------------------------------------------------------- … … 428 427 activeCCW(); 429 428 430 // Init start time for FPS.429 // Initialize start time for FPS. 431 430 mStartTime = clock(); 432 431 -
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp
r980 r985 1006 1006 simplifyEdgeCollapse(); 1007 1007 1008 // Create the qslimsimplification sequence.1009 create QslimSequence();1008 // Create the simplification sequence. 1009 createSimplificationSequence(); 1010 1010 1011 1011 } … … 1044 1044 simplifyEdgeCollapse(); 1045 1045 1046 // Create the qslimsimplification sequence.1047 create QslimSequence();1046 // Create the simplification sequence. 1047 createSimplificationSequence(); 1048 1048 1049 1049 delete mMeshSimplifier; … … 1168 1168 1169 1169 // Loads a simplification sequence file. 1170 oMeshSimpSequence->Load(Serializer(" mqslimSequence.txt",Serializer::READ));1170 oMeshSimpSequence->Load(Serializer("SimplifSequence.txt",Serializer::READ)); 1171 1171 1172 1172 // If the simplification sequence and the mesh exist. … … 1383 1383 mMeshReduction->set_visible(); 1384 1384 1385 // JGA1386 1385 // Allows floating point. 1387 1386 mMeshReduction->type(fltk::FloatInput::FLOAT); … … 1916 1915 if (mGeometryBased->value()) 1917 1916 { 1918 simplificationState = QSLIM;1917 simplificationState = MESHSIMP; 1919 1918 mMeshSimplifier = new GeometryBasedSimplifier(mGeoMesh, 1920 1919 progress_function); … … 2050 2049 2051 2050 //--------------------------------------------------------------------------- 2052 // Create a simplification sequence of the QSLIMmethod.2053 //--------------------------------------------------------------------------- 2054 void GeoMeshViewUI::create QslimSequence()2051 // Create a simplification sequence of the simplification method. 2052 //--------------------------------------------------------------------------- 2053 void GeoMeshViewUI::createSimplificationSequence() 2055 2054 { 2056 2055 MeshSimplificationSequence *secsimpl; … … 2059 2058 2060 2059 secsimpl->putMeshName(nombremesh); // Nombre del mesh para guardar la secuencia de simplificación 2061 secsimpl->Save(Geometry::Serializer(" mqslimSequence.txt",Serializer::WRITE));2060 secsimpl->Save(Geometry::Serializer("SimplifSequence.txt",Serializer::WRITE)); 2062 2061 2063 2062 delete secsimpl;
Note: See TracChangeset
for help on using the changeset viewer.