From a9bb2651e0ef7cfcd5af206e9856911b47012568 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sun, 15 Dec 2013 20:11:49 -0500 Subject: Deprecated polygons(triangles=[]) 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."); + } } } -- cgit v0.10.1