Derelict Assimp RemoveComponent

Mike Parker aldacron at gmail.com
Wed Sep 25 23:19:59 PDT 2013


On Wednesday, 25 September 2013 at 15:32:08 UTC, Lemonfiend wrote:
> This might be OT, or missing in Derelict's Assimp bindings, I'm 
> not sure.
>
> The aiPostProcessSteps.RemoveComponent flag signals that I want 
> Assimp to skip importing certain components.
> But where/how do I specify these?
>
> The docs only mention 
> http://assimp.sourceforge.net/lib_html/config_8h.html#afc0a4c00fb90c345eb38fe3f7d7c8637
> which is less than helpful..
>
> --
> uint flags = aiPostProcessSteps.GenNormals;
> flags |= aiPostProcessSteps.RemoveComponent;
> // And now for the components?
>
> auto scene = aiImportFile(path, flags);
> --
>
> Any ideas?

I think this is a question more likely to be answered in whatever 
Assimp community is out there. If it turns out there is a 
function missing from the Derelict binding, I'll be happy to add 
it. I have no knowledge of the usage of the Assimp API, though.



More information about the Digitalmars-d-learn mailing list