bool ParsedBlockImpl::getGeometryProp(const char* name, Geometry** value) { PBEGIN; Geometry* g = parser->findGeometryByName(value_s); if (!g) throw SyntaxError(line, "Geometry not defined"); *value = g; return true; }
bool ParsedBlockImpl::getIntersectableProp(const char* name, Intersectable** value) { PBEGIN; Geometry* g = parser->findGeometryByName(value_s); if (g) { *value = g; return true; } Node* node = parser->findNodeByName(value_s); if (!node) throw SyntaxError(line, "Intersectable by that name not defined"); *value = node; return true; }