From 2c6281b7e888d10d0bfe987ea7b0477cf7ca2769 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Tue, 23 Dec 2008 21:35:11 +0000 Subject: [PATCH] minor change: Update bounding box for all the meshes --- src/meshlabplugins/filter_create/filter_create.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meshlabplugins/filter_create/filter_create.cpp b/src/meshlabplugins/filter_create/filter_create.cpp index c29d17083..41ede5284 100644 --- a/src/meshlabplugins/filter_create/filter_create.cpp +++ b/src/meshlabplugins/filter_create/filter_create.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include "filter_create.h" // Constructor usually performs only two simple tasks of filling the two lists @@ -88,7 +89,7 @@ void FilterCreate::initParameterSet(QAction *action,MeshModel &m, FilterParamete case CR_CONE: parlst.addFloat("r0",1,"Radius 1","Radius of the bottom circumference"); parlst.addFloat("r1",2,"Radius 2","Radius of the top circumference"); - parlst.addFloat("h",5,"Height","Height of the Cone"); + parlst.addFloat("h",3,"Height","Height of the Cone"); break; default : return; } @@ -125,6 +126,7 @@ bool FilterCreate::applyFilter(QAction *filter, MeshModel &m, FilterParameterSet vcg::tri::Cone(m.cm,r0,r1,h); break; } + vcg::tri::UpdateBounding::Box(m.cm); vcg::tri::UpdateNormals::PerFace(m.cm); return true; }