8545| 0
|
[项目] Arduino + OLED12864 做一个简单的3d线框渲染引擎(二)坦克篇 |
继上一篇文章 在这里做一个更新 上期可参考 https://mc.dfrobot.com.cn/forum.php?mod=viewthread&tid=13645 新增一辆简单坦克如下 注,为了节约内存,代码做了一些修改并已同步,之前copy的同学可以重新copy一下 static MyVertex mp[] ={ {15,10,16}, \ {15,10,-21}, \ {-15,10,-21}, \ {-15,10,16}, \ {15,0,23}, \ {15,0,-27}, \ {-15,0,-27}, \ {-15,0,23}, \ {12,0,9}, \ {-12,0,9}, \ {-12,0,-18}, \ {12,0,-18}, \ {9,-6,6}, \ {-9,-6,6}, \ {-9,-6,-15}, \ {9,-6,-15}, \ {0,-3,7.5}, \ {0,-3,38}, \ {-3,-3,38}, \ {3,-3,38} }; static MyEdge me[] ={ {0, 1}, \ // {1, 2}, \ {2, 3}, \ // {3, 0}, \ {4, 5}, \ {5, 6}, \ {6, 7}, \ {7, 4}, \ {0, 4}, \ {1, 5}, \ {2, 6}, \ {3, 7}, \ {8, 9}, \ {9, 10}, \ {10, 11}, \ {11, 8}, \ {12, 13}, \ {13, 14}, \ {14, 15}, \ {15, 12}, \ {8, 12}, \ {9, 13}, \ {10, 14}, \ {11, 15}, \ {16, 17}, \ {17, 18}, \ {17, 19} }; |
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed