spirit-code / spirit

Atomistic Spin Simulation Framework
http://spirit-code.github.io
MIT License
118 stars 52 forks source link

Desktop GUI: selecting individual spins #439

Open GPMueller opened 6 years ago

GPMueller commented 6 years ago

The use would be:

There are three requirements:

The following would have to be implemented

  1. read the z-buffer, transform to normalized and together with x and y transform it to world coordinates https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluUnProject.xml
  2. find nearest unit cell center from collision point, then inside the unit cell find the nearest spin
  3. maybe cell-shading+outlining of a white spin? This could be difficult, as a single spin has to somehow be excluded from the regular rendering, but drawn by a different renderer