threejs多面体加纹理，貌似只改变了颜色，求大神指点！ 20C
``````         function initModel() {
//辅助工具
var helper = new THREE.AxisHelper(10);
var cubeGeometry = new THREE.Geometry();
//创建立方体的顶点
var vertices = [
new THREE.Vector3(0, 0, 20), //v0
new THREE.Vector3(30, 0, 0), //v1
new THREE.Vector3(0, 0,-20), //v2
new THREE.Vector3(-30, 0, 0), //v3
new THREE.Vector3(-30,220,0), //v4
new THREE.Vector3(-22,220,10), //v5
new THREE.Vector3(22,220,10), //v6
new THREE.Vector3(30,220,0), //v7
new THREE.Vector3(22,220,-10), //v8
new THREE.Vector3(-22,220,-10), //v9
];
cubeGeometry.vertices = vertices;
//创建立方的面
var faces=[
new THREE.Face3(0,1,2),
new THREE.Face3(0,2,3),
new THREE.Face3(3,0,5),
new THREE.Face3(3,5,4),
new THREE.Face3(3,4,9),
new THREE.Face3(3,9,2),
new THREE.Face3(2,9,8),
new THREE.Face3(8,1,2),
new THREE.Face3(8,7,1),
new THREE.Face3(6,1,7),
new THREE.Face3(6,0,1),
new THREE.Face3(0,6,5),
new THREE.Face3(5,6,7),
new THREE.Face3(5,7,8),
new THREE.Face3(5,8,9),
new THREE.Face3(5,9,4),

];
cubeGeometry.faces = faces;
//生成法向量
cubeGeometry.computeFaceNormals();

function createMesh(geom, imageFile) {
//  var texture =
var mat = new THREE.MeshPhongMaterial();
//      mat.specular = new THREE.Color(0xffffff);
mat.needsUpdate = true;
mat.shininess = 10;
var mesh = new THREE.Mesh(geom, mat);
return mesh;
}
//中间立体图形
var polyhedron1 = createMesh(cubeGeometry, "stone.jpg");
polyhedron1.position.x = 0;
polyhedron1.position.y = 120;
polyhedron1.position.z = 0;
}
``````
liyae1994 请问你这个问题解决了吗？我好像也遇到了相同的问题，你这个最后是怎么解决的呢

threejs多面体贴图加纹理，貌似只改变了颜色，求大神指点！

DX11画多边形还有多面体的问题

Problem Description Look up the picture A , the big wood is cut into many small ones. As we know, a cuboid has three attributes: Length, Width and Height. In the picture B, C, D, there are different. The problem is so easy that you just need to count the kinds of the cuboids which can be cut from the big one. When we cut the big one into so many small one, we give every one a number to mark which is 1×1×1. Look at the picture B and C, they have the same length, width and height, but the marking numbers they have are different from each other, so B is different from C. B and D have the different attributes (any one attribute of the length, width and height is different), so they are also different. Input Many data cases come. In each case, there are three positive integers L, W, H, which are the length, the width and the height of the LWH. When L, W and H are all -1, the input is over, and you haven’t to handle them. Output For each case, you should print the number of any kinds of cuboids you can cut from the original big one, and any two ones must be of difference. And you have to make sure the length and the width and the height of the small one you cut are all integers. You can assume the final result will be in the range of the 32-integer, for that you can calculate it easily. Sample Input 5 3 4 2 2 2 1 1 2 -1 -1 -1 Sample Output 900 27 3

Cut Pyramid 多面体问题

Problem Description Yaya and maomao have a cake. And the shape of the cake is a pyramid. As the following picture, AB=AC=AD=BC=BD=CD=N. Now they want to cut the cake to two same volume pieces as following picture. And EF is on the plane BCD and parallel to CD. GH is on the plane ACD and parallel to CD, too. Now give you the length of CE=L, and ask you to calculate the length of AG. Input Input contains multiple cases each presented on a separate line. Each line contains two integer numbers N(5<=N<=1000),L (0<=L<=N). Output For each test case, your program should output the length of AG hold 2 digits after the decimal point. If the answer is absent, output “Oh, my god!”. Sample Input 1000 500 1000 200 Sample Output 500.00 Oh, my god!

Problem Description Look up the picture A , the big wood is cut into many small ones. As we know, a cuboid has three attributes: Length, Width and Height. In the picture B, C, D, there are different. The problem is so easy that you just need to count the kinds of the cuboids which can be cut from the big one. When we cut the big one into so many small one, we give every one a number to mark which is 1×1×1. Look at the picture B and C, they have the same length, width and height, but the marking numbers they have are different from each other, so B is different from C. B and D have the different attributes (any one attribute of the length, width and height is different), so they are also different. Input Many data cases come. In each case, there are three positive integers L, W, H, which are the length, the width and the height of the LWH. When L, W and H are all -1, the input is over, and you haven’t to handle them. Output For each case, you should print the number of any kinds of cuboids you can cut from the original big one, and any two ones must be of difference. And you have to make sure the length and the width and the height of the small one you cut are all integers. You can assume the final result will be in the range of the 32-integer, for that you can calculate it easily. Sample Input 5 3 4 2 2 2 1 1 2 -1 -1 -1 Sample Output 900 27 3

stl模型能否实现参数化？

opengl编写一个实现对象的一点透视投影程序（写出矩阵即可）

1、给定Po V N，编写一个生成将世界坐标变换到三维观察坐标的矩阵的程序。观察向上向量可以是不平行于N的任意方向​ 2、使用平行投影方法及任意指定的投影向量，编写从多面体顶点到投影坐标的变换程序（写出矩阵即可） 3、编写一个实现对象的一点透视投影程序（写出矩阵即可）

loonggg读完需要3分钟速读仅需 1 分钟大家好，我是你们的校长。我之前讲过，这年头，只要肯动脑，肯行动，程序员凭借自己的技术，赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

win10暴力查看wifi密码

!大部分程序员只会写3年代码

HTTP与HTTPS的区别

HashMap底层实现原理，红黑树，B+树，B树的结构原理 Spring的AOP和IOC是什么？它们常见的使用场景有哪些？Spring事务，事务的属性，传播行为，数据库隔离级别 Spring和SpringMVC，MyBatis以及SpringBoot的注解分别有哪些？SpringMVC的工作原理，SpringBoot框架的优点，MyBatis框架的优点 SpringCould组件有哪些，他们...

Python爬虫，高清美图我全都要（彼岸桌面壁纸）

2020春招面试了10多家大厂，我把问烂了的数据库事务知识点总结了一下

2020年截止目前，我面试了阿里巴巴、腾讯、美团、拼多多、京东、快手等互联网大厂。我发现数据库事务在面试中出现的次数非常多。

C 语言中，x += 5 == 4 是什么意思？

#讨论这个有意义吗？这个是在知乎上看到的一个问题，评论挺多的。其中有人提到，研究这个东西有什么用？编程的时候我们不能这么写的。我记得在大学的时候，我们的副院长给我们上课，就给我们提到，...