summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2014-02-06 06:49:11 (GMT)
committerMarius Kintel <marius@kintel.net>2014-02-06 06:49:11 (GMT)
commitf8f3ca45e77035f7e0a942940d7c538a48cafd74 (patch)
tree1934c77536de4acf202eb0cab2d7bb8e64b91942
parent47b20e3bb12010202ec5f26aa46239f54569b28c (diff)
fix related to 6a1d91dc76ec819e85b180b8cdaf40ddd639a538
-rw-r--r--src/mainwin.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index a64caa2..f6a04b7 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -1546,22 +1546,19 @@ void MainWindow::actionCheckValidity() {
#ifdef ENABLE_CGAL
setCurrentOutput();
- if (!this->root_geom) {
+ if (!this->root_N) {
PRINT("Nothing to validate! Try building first (press F6).");
clearCurrentOutput();
return;
}
- if (this->root_geom->getDimension() != 3) {
+ if (this->root_N->dim != 3) {
PRINT("Current top level object is not a 3D object.");
clearCurrentOutput();
return;
}
- bool valid = false;
- if (const CGAL_Nef_polyhedron *N = dynamic_cast<const CGAL_Nef_polyhedron *>(this->root_geom.get()))
- valid = N->p3->is_valid();
-
+ bool valid = this->root_N->p3->is_valid();
PRINTB(" Valid: %6s", (valid ? "yes" : "no"));
clearCurrentOutput();
#endif /* ENABLE_CGAL */
contact: Jan Huwald // Impressum