Formation 3D

3D Formations subsystem for formations

We also take care to make other 3D formations more complex, for this we use a library called Open3D which is an open-source library that supports rapid development of software that deals with 3D data. For more information and how to use it for personal projects you can visit the Open3D website link.

The function is very simple, using only the tools in the library. When you select it from the menu, the program will prompt you for the file in one of the formats below. In addition, you will also be prompted for the number of points desired for the composition of the formation. The Open3D functions return the coordinates of the points formed. The process described is to visualize the images below of how the points would be.

How to use it

To get a preview of how the simulation would look you can use the file formation3D.py. The command should be used inside the folder in which it resides.

#Use the Python version on your machine
python3 formation3D.py

To simulate it, just do the same as in the previous session and run swarm.py. Choose the desired function and follow the same paths as for Formation.

Example

Remarks

It is worth pointing out that this tool to perfectly form the desired formation would require many points, more than the Wi-fi network can support. In this way, this tool becomes more visual. The limit is 255 Clovers.

Last updated