Index: GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp
===================================================================
--- GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp	(revision 1549)
+++ GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp	(revision 1560)
@@ -1034,8 +1034,19 @@
 				else
 				{
+					//	Transform NoSV Mesh to a SV Mesh.
+					mesh_aux	=	mGeoMesh->toSharedVertex();
+
+					//	Deletes the mesh No Shared Vertex.
+					delete	mGeoMesh;
+
+					//	Gets the mesh Shared Vertex.
+					mGeoMesh	=	mesh_aux;
+
+					// Visualize mesh.
+					geoMeshView->setMesh(mGeoMesh);
+
 					//	Simplify the mesh object.
 					if(simplifyEdgeCollapse())
 					{
-						delete	mMeshSimplifier;
 						geoMeshView->restoreContext();
 					}
@@ -1056,5 +1067,6 @@
 				//	Simplify and generate simplification sequence.
 			case	LODTREES_AUTO:
-				if (idMeshLeaves==(unsigned short)-1)
+
+				if (idMeshLeaves == (unsigned short)-1)
 				{
 					fltk::alert("Leaves submesh not selected!");
@@ -1141,7 +1153,4 @@
 					if (simplifyEdgeCollapse())
 					{
-						//	Create the simplification sequence.
-						//createSimplificationSequence();
-						
 						//delete	mMeshSimplifier;
 						geoMeshView->restoreContext();
@@ -2600,5 +2609,4 @@
 					o->box(fltk::FLAT_BOX);
 					o->color((fltk::Color)0xffffff00);
-					//fltk::Group::current()->resizable(o);
 				}
 
@@ -2621,5 +2629,4 @@
 				{
 					fltk::Button* o;
-					//o = mButtonProcess = new fltk::Button(665, 410, 73, 25, "Process");
 					o = mButtonProcess = new fltk::Button(75, 410, 73, 25, "Process");
 					o->callback((fltk::Callback*)cb_mButtonProcess);
@@ -2630,5 +2637,4 @@
 				{
 					fltk::ProgressBar* o;
-					//o = mProcessBar = new fltk::ProgressBar(616, 435, 175, 18);
 					o = mProcessBar = new fltk::ProgressBar(16, 435, 195, 18);
 					o->hide();
@@ -2669,4 +2675,5 @@
 					fltk::Slider* o;
 					o = mLodStripSlider = new fltk::Slider(16, 50, 30, 450);
+					o->linesize(0.01f);
 					o->type(fltk::Slider::TICK_BELOW);
 					o->set_vertical();
@@ -2678,4 +2685,5 @@
 					fltk::Slider* o;
 					o = mLodTreeSlider = new fltk::Slider(46, 50, 30, 450);
+					o->linesize(0.01f);
 					o->type(fltk::Slider::TICK_BELOW);
 					o->set_vertical();
@@ -2706,6 +2714,4 @@
 				}
 
-				//mChangeVertices = new fltk::CheckButton(30, 104, 25, 25, "Change vertices");
-
 				{
 					mProcessTitle		= new fltk::Widget(0, 0, 230, 25, "");
@@ -2719,16 +2725,4 @@
 				}
 
-				/*
-					 {
-					 mTypeLabel			= new fltk::Output(26, 82, 5, 25, "Type");
-					 fltk::Output* o	=	mTypeLabel;
-					 o->set_vertical();
-					 o->box(fltk::NO_BOX);
-					 o->labelfont(fltk::HELVETICA_BOLD);
-					 o->color((fltk::Color)0xe0dfe300);
-					 o->align(fltk::ALIGN_RIGHT);
-					 }
-					 */
-
 				{
 					mMeshReductionLabel	= new fltk::Output(26, 124, 0, 25, "Mesh Reduction");
@@ -2741,6 +2735,4 @@
 				}
 
-				//mChangeTexture = new fltk::CheckButton(30, 104, 25, 25, "Change texture");
-
 				{
 					fltk::Group* o;
@@ -2815,9 +2807,4 @@
 				}
 
-				//{
-				//	fltk::Item* o = menuFileTransformSharedVertex = new fltk::Item("Transform to Shared Vertex");
-				//	o->callback((fltk::Callback*)cb_menuFileTransformSharedVertex);
-				//}
-
 				{
 					menuLoadTextures = new fltk::ItemGroup("Load Textures");
@@ -2862,9 +2849,4 @@
 				}
 
-				//{
-				//	fltk::Item* o = menuEditZoom = new fltk::Item("Zoom");
-				//	o->callback((fltk::Callback*)cb_menuEditZoom);
-				//}
-
 				new fltk::Divider();
 
@@ -2879,5 +2861,4 @@
 					o->callback((fltk::Callback*)cb_menuSelectLeaves);
 				}
-
 				o->end();
 			}
@@ -2900,12 +2881,8 @@
 				}
 
-				//new fltk::Divider();
-
 				{
 					fltk::Item* o = menuRenderCW = new fltk::Item("CW");
 					o->type(fltk::Item::RADIO);
 					o->callback((fltk::Callback*)cb_menuRenderCW);
-
-					//o->hide();
 				}
 
@@ -2915,6 +2892,4 @@
 					o->set_value();
 					o->callback((fltk::Callback*)cb_menuRenderCCW);
-
-					//o->hide();
 				}
 
@@ -2996,5 +2971,4 @@
 
 			//	Menu LodTrees.
-			
 			{
 				fltk::ItemGroup* o;
@@ -3029,13 +3003,4 @@
 			}
 
-/*			{
-				fltk::SharedImage *gifLogo = logo->get("media\\logos\\logo.gif");
-				
-				//o->callback((fltk::Callback*)cb_mLogo);
-				
-				mLogo	=	new fltk::InvisibleBox(406, 1, 43, 13);				
-				mLogo->image(gifLogo);
-			}*/
-
 			o->end();
 		}
@@ -3046,14 +3011,4 @@
 			o->box(fltk::BORDER_BOX);
 			o->begin();
-
-			/*
-			{
-				fltk::Widget* o;
-				o = mFPS = new fltk::Widget(10, 4, 30, 15, "FPS ");
-				o->box(fltk::NO_BOX);
-				o->labelfont(fltk::HELVETICA_BOLD);
-				o->color((fltk::Color)0xe0dfe300);
-			}
-			*/
 
 			{
@@ -3071,7 +3026,4 @@
 				o->labelfont(fltk::HELVETICA_BOLD);
 				o->color((fltk::Color)0xe0dfe300);
-
-				//	Hide triangle count.
-				//o->hide();
 			}
 
@@ -3083,12 +3035,4 @@
 				o->color((fltk::Color)0xe0dfe300);
 			}
-
-			//{
-			//	fltk::Widget* o;
-			//	o = mQuads = new fltk::Widget(454, 4, 40, 15, "Quads");
-			//	o->box(fltk::NO_BOX);
-			//	o->labelfont(fltk::HELVETICA_BOLD);
-			//	o->color((fltk::Color)0xe0dfe300);
-			//}
 
 			{
@@ -3101,6 +3045,4 @@
 			o->end();
 		}
-
-
 		o->end();
 	}
@@ -3108,5 +3050,4 @@
 	fltk::focus(geoMeshView);
 	
-
 	/*Hide Right Panel*/
 	hideRightPanel();
