diff options
-rw-r--r-- | RELEASE_NOTES | 1 | ||||
-rw-r--r-- | src/primitives.cc | 3 |
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."); + } } } |