Deprecated polygons(triangles=[])

vector-concat
Marius Kintel 2013-12-15 20:11:49 -05:00
parent 4be55c016e
commit a9bb2651e0
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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.");
}
}
}