Changeset 841 for GTP/trunk/Lib/Geom/shared/GeoTool/src
- Timestamp:
- 04/27/06 12:01:26 (19 years ago)
- Location:
- GTP/trunk/Lib/Geom/shared/GeoTool/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshView.cpp
r829 r841 586 586 drawLodStrip(); 587 587 } 588 else if (mLodTree)589 {590 drawLodTree();591 }588 //else if (mLodTree) 589 //{ 590 // drawLodTree(); 591 //} 592 592 else 593 593 { -
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp
r834 r841 881 881 else 882 882 { 883 884 883 // Simplify the mesh object. 885 884 simplifyEdgeCollapse(); … … 893 892 simplifyLeavesCollapse(); 894 893 894 // Create the leaves simplification sequence. 895 createLeavesSequence(); 896 895 897 break; 896 898 … … 905 907 else 906 908 { 907 908 909 // Transform NoSV Mesh to a SV Mesh. 909 910 mesh_aux = mGeoMesh->toSharedVertex(); … … 992 993 993 994 // Builder 994 995 995 // Open file chooser dialog. 996 996 file_name = fltk::file_chooser( "Build LOD", … … 1022 1022 oLodStrip = new LodStripsConstructor( mGeoMesh, 1023 1023 oMeshSimpSequence, 1024 idMeshLeaves, 1024 1025 progress_function); 1025 1026 … … 1027 1028 Serializer::Mode::WRITE); 1028 1029 1029 oLodStrip-> LodStripsConstructor::Save(*oSerializer);1030 oLodStrip->Save(*oSerializer); 1030 1031 1031 1032 // Close file. … … 1695 1696 simplificacionState = QSLIM; 1696 1697 1697 m s= new ImageBasedSimplifier(mGeoMesh, progress_function);1698 1699 m s->setMeshLeaves(idMeshLeaves);1698 mMeshSimplifier = new ImageBasedSimplifier(mGeoMesh, progress_function); 1699 1700 mMeshSimplifier->setMeshLeaves(idMeshLeaves); 1700 1701 1701 1702 if (mPercent->value() == true) … … 1708 1709 1709 1710 // Simplifica el geomesh -> Parámetro es un factor LOD [0,1]. 1710 m s->Simplify(percent);1711 mMeshSimplifier->Simplify(percent); 1711 1712 1712 1713 // Deletes the previous mesh. … … 1720 1721 delete mGeoMesh; 1721 1722 1722 mGeoMesh = m s->GetMesh();1723 mGeoMesh = mMeshSimplifier->GetMesh(); 1723 1724 1724 1725 // Visualize mesh. … … 1737 1738 1738 1739 // Simplifica el geomesh -> Parámetro es un factor LOD [0,1]. 1739 m s->Simplify(v);1740 mMeshSimplifier->Simplify(v); 1740 1741 1741 1742 // Deletes the previous mesh. … … 1749 1750 delete mGeoMesh; 1750 1751 1751 mGeoMesh = m s->GetMesh();1752 mGeoMesh = mMeshSimplifier->GetMesh(); 1752 1753 1753 1754 // Visualize the mesh. … … 1773 1774 simplificacionState = HOJAS; 1774 1775 1775 m ts= new TreeSimplifier(mGeoMesh, progress_function);1776 mTreeSimplifier = new TreeSimplifier(mGeoMesh, progress_function); 1776 1777 vi = (uint32)mMeshReduction->fvalue(); 1777 1778 … … 1780 1781 { 1781 1782 // Simplify 1782 m ts->Simplify(vi, idMeshLeaves);1783 mTreeSimplifier->Simplify(vi, idMeshLeaves); 1783 1784 1784 1785 // Deletes the previous mesh. … … 1792 1793 delete mGeoMesh; 1793 1794 1794 mGeoMesh = m ts->GetMesh();1795 mGeoMesh = mTreeSimplifier->GetMesh(); 1795 1796 1796 1797 geoMeshView->setMesh(mGeoMesh); … … 1810 1811 MeshSimplificationSequence *secsimpl; 1811 1812 1812 secsimpl = m s->GetSimplificationSequence();1813 secsimpl = mMeshSimplifier->GetSimplificationSequence(); 1813 1814 1814 1815 secsimpl->putMeshName(nombremesh); // Nombre del mesh para guardar la secuencia de simplificación … … 1816 1817 1817 1818 delete secsimpl; 1819 } 1820 1821 //--------------------------------------------------------------------------- 1822 // Create a simplification sequence of the leaves. 1823 //--------------------------------------------------------------------------- 1824 void GeoMeshViewUI::createLeavesSequence() 1825 { 1826 TreeSimplificationSequence *tree_sequencer; 1827 1828 tree_sequencer = mTreeSimplifier->GetSimplificationSequence(); 1829 1830 tree_sequencer->putMeshName(nombremesh); 1831 tree_sequencer->Save(Serializer("leavesSequence.txt",Serializer::WRITE)); 1832 1833 delete tree_sequencer; 1818 1834 } 1819 1835
Note: See TracChangeset
for help on using the changeset viewer.