This is a community-contributed algorithm that is included in Panda3D from version 1.5.0. If you use an older version, you can download it at the original forum topic: [1]
Note: this section is incomplete. It will be updated soon.