Do I need an additional program?

Given coordinates which outline a polygon on the map. I want to create a list of waypoints which saturate the search area to certain specifications. Do I need to do this in an outside program, or is there a way to write a program in the mission planner. How would I go about doing this. I feel pretty confident I could solve this problem in java or python, but I would rather not use an outside program. If I do need to use an outside program, how would I output a list of waypoints from a java or python program to the mission planner?