Look up the descriptor for a node type that came from the store.
SceneNode.type is an unvalidated string (build-scene-graph.ts takes
attrs.type verbatim), so a plain GEOMETRY_DESCRIPTORS[type] would reach
Object.prototype for values like constructor or toString and return a
truthy non-descriptor. Object.hasOwn keeps the lookup to the table's own
keys. Callers holding a GeometryKind from a trusted source (the loader
registry, a literal) can index the table directly.
Look up the descriptor for a node type that came from the store.
SceneNode.typeis an unvalidated string (build-scene-graph.tstakesattrs.typeverbatim), so a plainGEOMETRY_DESCRIPTORS[type]would reachObject.prototypefor values likeconstructorortoStringand return a truthy non-descriptor.Object.hasOwnkeeps the lookup to the table's own keys. Callers holding aGeometryKindfrom a trusted source (the loader registry, a literal) can index the table directly.