I have this truss-solver implementation in c++ which, for a given truss and boundary conditions, it calculates the displacements at the joints, and the stress at the elements. So at the end of the run, the console will display something like this:
My knowledge of how to implement that kind of graphics is zero. So a solution that is easy to implement, or fast/easy to learn will be appreciated. By the way, I'm using CodeBlocks for Windows, and i would like the final application to be cross platform.
If there's something i'm not taking into account or you have other suggestions, i would like to know them.
You would have to have a list of points (joints) and edges (trusses) to draw, and be able to calculate their offsets based upon the stresses. You'll need a solver for the system to get everything to settle to the correct places.