summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CGALEvaluator.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/CGALEvaluator.cc b/src/CGALEvaluator.cc
index 75b9097..ac6190f 100644
--- a/src/CGALEvaluator.cc
+++ b/src/CGALEvaluator.cc
@@ -241,12 +241,9 @@ Response CGALEvaluator::visit(State &state, const TransformNode &node)
// First union all children
N = applyToChildren(node, CGE_UNION);
- if ( matrix_contains_infinity( node.matrix ) ) {
- PRINT("Warning: Transformation matrix contains Infinity - removing object.");
- N.reset();
- }
- if ( matrix_contains_nan( node.matrix ) ) {
- PRINT("Warning: Transformation matrix contains Not-a-Number - removing object");
+ if ( matrix_contains_infinity( node.matrix ) || matrix_contains_nan( node.matrix ) ) {
+ // due to the way parse/eval works we can't currently distinguish between NaN and Inf
+ PRINT("Warning: Transformation matrix contains Not-a-Number and/or Infinity - removing object.");
N.reset();
}
contact: Jan Huwald // Impressum