To allow for creation of more import/export plugins for Crashday's .p3d files, the source code of the MakeP3D tool is provided with the SDK.
It contains the full file parsing code for .p3d files.
See the [crashday]/tools/makep3d folder.