summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-12-16 01:11:49 (GMT)
committerMarius Kintel <marius@kintel.net>2013-12-16 01:11:49 (GMT)
commita9bb2651e0ef7cfcd5af206e9856911b47012568 (patch)
tree478aa8f55524c88007366db20f91a88991da157d
parent4be55c016ec0af199820e116a9b358180581eaf4 (diff)
Deprecated polygons(triangles=[])
-rw-r--r--RELEASE_NOTES1
-rw-r--r--src/primitives.cc3
2 files changed, 4 insertions, 0 deletions
diff --git a/RELEASE_NOTES b/RELEASE_NOTES
index d652cc9..99df39c 100644
--- a/RELEASE_NOTES
+++ b/RELEASE_NOTES
@@ -27,6 +27,7 @@ o Stability fixes of CGAL-related crashes
Deprecations:
o child() is no longer supported. Use children() instead.
+o polyhedron(triangles=[...]): Use polyhedron(faces=[...]) instead.
Misc:
o We now use CGAL's EPEC kernel
diff --git a/src/primitives.cc b/src/primitives.cc
index a76637d..f1a4ba7 100644
--- a/src/primitives.cc
+++ b/src/primitives.cc
@@ -239,6 +239,9 @@ AbstractNode *PrimitiveModule::instantiate(const Context *ctx, const ModuleInsta
if (node->faces.type() == Value::UNDEFINED) {
// backwards compatable
node->faces = c.lookup_variable("triangles");
+ if (node->faces.type() != Value::UNDEFINED) {
+ PRINT("DEPRECATED: polyhedron(triangles=[]) will be removed in future releases. Use polyhedron(faces=[]) instead.");
+ }
}
}
contact: Jan Huwald // Impressum