Dear list,<div><br></div><div>Is there any way to poll a scene-graph id for it's type? What I mean is that when I know that the scene-graph contains a primitive foo that might be either a model loaded from a .obj file or a "particles", I'd like to do something like;</div>
<div><br></div><div>(type foo) -> "particles"</div><div><br></div><div>or </div><div><br></div><div>(particles? foo) -> #t</div><div><br></div><div>If not are there other who would see this as useful or should I keep track of it myself? If so, would such use be in balance to how hard a implementation would be to do? Right now it seems to me that Racket structures all and inherently have functions like "(string? bar)" and "(number? baz)" yet our scene-graph lacks those.</div>
<div><br></div><div>In fact, in the above examples (number? foo) returns #t, which is fair, as it *is* a number, literally speaking, but this does seem counter-intuitive in the context of the scene-graph where we'd like to treat it as a a "particles" (or a poly, or a ribbon, or a locator or....). Then again, if I dig that deep I might be causing more trouble than it's worth, and while new features could be imagined we'd lose the ability to iterate over the scene-graph, unless that too would become accessible as a list. There might be more unforeseen consequences.</div>
<div><br></div><div>Yours,</div><div>Kas.</div>