1013. Partition Array Into Three Parts With Equal Sum(将数组分成和相等的三个部分) 链接 https://leetcode cn.com/problems/partition array into three parts with equal s ...
分类:
其他好文 时间:
2020-03-11 10:31:17
阅读次数:
56
1.正三角形 function initLine(){ geometry = new THREE.Geometry(); var material = new THREE.LineBasicMaterial({vertexColors:true}); var p1 = new THREE.Vecto ...
分类:
Web程序 时间:
2020-03-10 22:10:49
阅读次数:
130
直接在官网上能搜出来 var size = 10000; var divisions = 10; var gridHelper = new THREE.GridHelper( size, divisions ); scene.add( gridHelper ); size -- 坐标格尺寸. 默认为 ...
分类:
Web程序 时间:
2020-03-10 21:37:15
阅读次数:
80
<!DOCTYPE html> <html> <head> <title>demo1</title> </head> <style type="text/css"> body{ margin:0; } canvas{ width:100%; height:100%; } </style> <body ...
分类:
Web程序 时间:
2020-03-10 15:37:48
阅读次数:
68
mtl文件 模型的材质信息,比如模型颜色、透明度等信息,还有纹理贴图的路径,比如颜色贴图、法线贴图、高光贴图等等。 obj 模型 2进制模型文件 function loadObj(){ var loader = new OBJLoader(); loader.load( './3d/banana.o ...
分类:
Web程序 时间:
2020-03-09 22:26:59
阅读次数:
81
题目链接:https://codeforces.com/contest/1311/problem/D 题意: 给出三个整数 a ≤ b ≤ c ,您可以添加+1 或 1 到这三个整数中的任何一个增加或减少 1 ,可以执行任意次(可能为零)次这样的操作,甚至可以一次执行多次。求执行此类操作的最少次数, ...
分类:
其他好文 时间:
2020-03-09 16:21:38
阅读次数:
43
这是我之前做的一个demo,导入的3d模型文件是obj格式的,需要使用OBJLoader和MTLLoader, mtl文件用于描述多边形可视面貌的材质如果你可以导出obj、mtl文件的话,那么就可以使用下面的代码把3d模型添加到three.js构建的场景里了 function loadBuild() ...
分类:
Web程序 时间:
2020-03-08 21:37:46
阅读次数:
169
Stats 102A HW4 Due March 3, 2020General Notes? You will submit a minimum of three files, the core files must conform to the followingnaming convention ...
分类:
其他好文 时间:
2020-03-08 20:10:33
阅读次数:
68
公司要做智慧消防楼层可视化,需要用到web3d,开源的引擎中先研究了cesium三维地球,但cesium做楼层感觉是大材小用,而且体验也不好,最终选用的是功能强大、更适合小型场景的three。 three是图形引擎,而web二维三维地图都是基于图形引擎的,所以拿three来开发需求简单的三维地图应用 ...
分类:
Web程序 时间:
2020-03-08 09:37:06
阅读次数:
190
名词分两类: 可数名词 是指数得过来的概念 比如:apple , pencil , student. 可数名词数量在两个或两个以上,可数名词要加s,比如 two apples , three pencils , five students 可数名词有单数和复数之分: apple-apples、pen ...
分类:
其他好文 时间:
2020-03-07 20:40:49
阅读次数:
106