summaryrefslogtreecommitdiff
path: root/src/CGALEvaluator.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-12 00:40:02 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-12 00:40:02 (GMT)
commit4fa2338b267bdf6e08385ae103b5bafe7b4ee6e4 (patch)
tree3e9ed971b08ee7f34057bddf943ec4b742ffc0e4 /src/CGALEvaluator.cc
parent7294d29789606111dcc2c9eafd451ce660f2cb15 (diff)
fix bug showed during circle test
Diffstat (limited to 'src/CGALEvaluator.cc')
-rw-r--r--src/CGALEvaluator.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/CGALEvaluator.cc b/src/CGALEvaluator.cc
index 406614f..7c483cb 100644
--- a/src/CGALEvaluator.cc
+++ b/src/CGALEvaluator.cc
@@ -181,9 +181,11 @@ CGAL_Nef_polyhedron CGALEvaluator::applyHull(const CgaladvNode &node)
CGAL_Nef_polyhedron CGALEvaluator::applyResize(const CgaladvNode &node)
{
- // Based on resize() in Giles Bathgate's RapCAD (but not exactly)
+ // Based on resize() in Giles Bathgate's RapCAD (but not exactly)
CGAL_Nef_polyhedron N;
- N = applyToChildren(node, CGE_UNION);
+ N = applyToChildren(node, CGE_UNION);
+
+ if ( N.isNull() || N.isEmpty() ) return N;
for (int i=0;i<3;i++) {
if (node.newsize[i]<0) {
@@ -309,9 +311,7 @@ Response CGALEvaluator::visit(State &state, const TransformNode &node)
PRINT("Warning: Transformation matrix contains Not-a-Number and/or Infinity - removing object.");
N.reset();
}
- else {
- N.transform( node.matrix );
- }
+ N.transform( node.matrix );
}
else {
N = CGALCache::instance()->get(this->tree.getIdString(node));
contact: Jan Huwald // Impressum