Hi Largo,
TBGL is not 3D editor, it is general purpose 2D/3D engine. It is possible to develop what you show on the picture, but of course, it should be done in programmers control.
- The first step would be generating the sphere geometry to array. Information on how the sphere is defined can be found for example on Wikipedia or Wolfram Math World
- The second step could be rendering the sphere in multiple passes - as solid, as wire and via the points. TBGL has all the resources you need for defining the geometry, the TBGL_PointLook could be good helper for switching the look from solid to points, but it is not necessary, if you render the primitives directly
- The third step could be picking the points on the sphere. Combination of TBGL_GetPixelInfo and mouse functions makes possible to detect where user clicks in scene, as I shown in another example for you. Testing whether the point found is in radius around some of the existing vertices could be made via TBGL_PointInside3D and query to your data structure holding the position information
Good knowledge of math might be useful, for reference you could use for example the previously linked Wolfram Math World or any good book on the topic of course.
I hope it helps,
Petr
Bookmarks