[英]Graphics for c++
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. 我在c ++中有这个truss-solver实现,对于给定的桁架和边界条件,它可以计算出关节处的位移和单元处的应力。 So at the end of the run, the console will display something like this:
因此,在运行结束时,控制台将显示以下内容:
-Node- -Disp.-
1 0.50
2 0.04
3 1.21
-Element- -Stress-
1 121.50
2 99.14
3 144.09
I would like to plot that results to see the deformed structure on the screen, for example: http://www.aem.umn.edu/people/faculty/shield/software/truss/main12.gif 我想绘制该结果以在屏幕上看到变形的结构,例如: http : //www.aem.umn.edu/people/faculty/shield/software/truss/main12.gif
or 要么
http://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Deformframe.JPG/750px-Deformframe.JPG http://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Deformframe.JPG/750px-Deformframe.JPG
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.
顺便说一句,我正在使用Windows的CodeBlocks,我希望最终的应用程序是跨平台的。
If there's something i'm not taking into account or you have other suggestions, i would like to know them. 如果有一些我没有考虑到的问题,或者您还有其他建议,我想知道。
Thanks. 谢谢。
http://www.mentor.com/products/silicon-yield/ieee_conference_papers/ http://www.mentor.com/products/silicon-yield/ieee_conference_papers/
Refer this website for more details 有关更多详细信息,请参考此网站
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.