i got stuck showing text in the viewport.
I am in visual studio, i already managed to get a poitncloud displayed, but the text wont show up.
I am not sure what the error is,i dont get any error, the text just dont shows up.
I can’t see anything wrong with the code, but it’s all conjecture until I can actually run it.
You could try drawing something else at your point locations (circles, just points, lines from the world origin to your points, anything that might help you debug).
Do note that if your points are outside of the clipping bounds then they will not show up. You must return a clipping boundingbox which is big enough to contain all the geometry you wish to draw.
I the points are visible, just the text is miisng. So i assume the clippingBox should be big enough.
I uploaded in the question the visual studio files, i will upload a newer one here, maybe you could have a look? Just need to pack it to can upload on this forum.
Thanks for all the time you already spent one this! CurveSlopeAnalysis.rar (29.8 KB)
The problem is you never actually assign your class level variables _colours and _text. You are maintaining separate collections inside SolveInstance() and never copy the values out into your class level variables.
You should put a breakpoint in your DrawViewportWires method and then you can inspect your variables. If you cannot set breakpoints and debug your code then that should be priority #1. Developing without a debugger is not something you should settle for.
ps. I made some changes to the naming of variables in the code. I’m just so used to my scheme that I find it really hard to see bugs otherwise. You of course do not have to adhere to my personal preference.