added 3dsx support

This adds 3dsx support
please rename the loop variable to something more fitting. Do you think "segment" would be appropriate?