Hi Martin, it's possible for some factories to return more than one object as the result of their operation so because of that the factory.calculate() method does not just return a single object like your code there is expecting, it actually returns an "object list".
You can then retrieve the object out of that object list by something like this:
var objlist = factory.calculate();
var cylinder1 = objlist.item(0);
- Michael
|