mirror of https://github.com/CGAL/cgal
Added epsilon on clipping
+ try fix test undefined reference to Scene_edit_box_item
This commit is contained in:
parent
c5b2d4d00b
commit
384e7fad38
|
|
@ -99,9 +99,10 @@ struct Scene_edit_box_item_priv{
|
|||
constraint.setRotationConstraintDirection(CGAL::qglviewer::Vec(.0,.0,.1));
|
||||
frame->setConstraint(&constraint);
|
||||
//create the sphere model
|
||||
pool[0] = bb.xmin(); pool[3] = bb.xmax();
|
||||
pool[1] = bb.ymin(); pool[4] = bb.ymax();
|
||||
pool[2] = bb.zmin(); pool[5] = bb.zmax();
|
||||
float eps = 1.e-3;
|
||||
pool[0] = bb.xmin()-eps; pool[3] = bb.xmax()+eps;
|
||||
pool[1] = bb.ymin()-eps; pool[4] = bb.ymax()+eps;
|
||||
pool[2] = bb.zmin()-eps; pool[5] = bb.zmax()+eps;
|
||||
|
||||
vertex_spheres.resize(0);
|
||||
normal_spheres.resize(0);
|
||||
|
|
@ -254,7 +255,7 @@ struct Scene_edit_box_item_priv{
|
|||
void reset_vertices()
|
||||
{
|
||||
Scene_item::Bbox bb = scene->bbox();
|
||||
float eps = 1.e-6;
|
||||
float eps = 1.e-3;
|
||||
pool[0] = bb.xmin()-eps; pool[3] = bb.xmax()+eps;
|
||||
pool[1] = bb.ymin()-eps; pool[4] = bb.ymax()+eps;
|
||||
pool[2] = bb.zmin()-eps; pool[5] = bb.zmax()+eps;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
#include "Scene_triangulation_3_item.h"
|
||||
#include "Scene_surface_mesh_item.h"
|
||||
#include "Scene_spheres_item.h"
|
||||
#include "Plugins/PCA/Scene_edit_box_item.h"
|
||||
|
||||
#include <QVector>
|
||||
#include <QColor>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
#define SCENE_TRIANGULATION_3_ITEM_H
|
||||
|
||||
#include "Scene_triangulation_3_item_config.h"
|
||||
#include "Plugins/PCA/Scene_edit_box_item.h"
|
||||
#include "T3_type.h"
|
||||
|
||||
#include <QVector>
|
||||
|
|
|
|||
Loading…
Reference in New Issue