随笔分类 -  JavaScript

摘要:threejs cross var vOA5 = new THREE.Vector3(0.715, 0.038627, 0.698); var vOB5 = new THREE.Vector3(0.697, 0.036755, -0.716); var vOC5 = vOA5.cross(vOB5) 阅读全文
posted @ 2022-01-17 21:45 西北逍遥 阅读(132) 评论(0) 推荐(0)
摘要:threejs运算 常用方法 方法描述 intersect(交集) 使用这个方法可以从获取两个几何体的共同部分 union (并集) 使用这个方法、可以把两个几何体联合在一起 subtract (差集) 使用这个方法可以从一个几何体中移除另一个几何体与这个几何体的重复部分 参考:https://bl 阅读全文
posted @ 2022-01-15 22:01 西北逍遥 阅读(117) 评论(0) 推荐(0)
摘要:threejs物体设置中心坐标 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>移动位置</title> <style> body { margin: 0; overflow: hidden; } </s 阅读全文
posted @ 2022-01-11 18:25 西北逍遥 阅读(4202) 评论(0) 推荐(1)
摘要:transformVertex( vertexPosition, mvPosition, center, scale, sin, cos ) function transformVertex( vertexPosition, mvPosition, center, scale, sin, cos ) 阅读全文
posted @ 2022-01-09 17:34 西北逍遥 阅读(50) 评论(0) 推荐(0)
摘要:threejs绘制三角面 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>ifc三维场景</title> <style> body { margin: 0; overflow: hidden; } </s 阅读全文
posted @ 2022-01-06 12:28 西北逍遥 阅读(528) 评论(0) 推荐(0)
摘要:THREE.Earcut = { triangulate: function ( data, holeIndices, dim ) { dim = dim || 2; const hasHoles = holeIndices && holeIndices.length; const outerLen 阅读全文
posted @ 2022-01-06 08:00 西北逍遥 阅读(458) 评论(0) 推荐(0)
摘要:threejs绘制多边形, threejs多边形绘制方法: var points = [ new THREE.Vector2(10,10), new THREE.Vector2(300, 10), new THREE.Vector2(300, 30), new THREE.Vector2(260, 阅读全文
posted @ 2021-11-29 15:51 西北逍遥 阅读(877) 评论(0) 推荐(0)
摘要:threejs绘制多边形 function test2(){ // 三维坐标返回顶点索引 可以参照上面的五边形 返回结果是一样的 //var trianglesIndex3 = earcut([ //三维顶点数据 var arr = [7.0,-130.0,700.0, 7.0,130.0,700. 阅读全文
posted @ 2021-11-28 19:22 西北逍遥 阅读(223) 评论(0) 推荐(0)
摘要:threejs绘制多边形 function test2(){ // 三维坐标返回顶点索引 可以参照上面的五边形 返回结果是一样的 //var trianglesIndex3 = earcut([ //三维顶点数据 var arr = [7.0,-130.0,700.0, 7.0,130.0,700. 阅读全文
posted @ 2021-11-28 19:10 西北逍遥 阅读(847) 评论(0) 推荐(0)
摘要:threejs绘制长方体 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>WebGL三维场景</title> <style> body { margin: 0; overflow: hidden; /* 阅读全文
posted @ 2021-11-17 10:47 西北逍遥 阅读(1356) 评论(1) 推荐(0)
摘要:Threejs绘制多边形,使用THREE.Shape() function createPolygon(){ var group = new THREE.Group(); var rectLength = 120, rectWidth = 40; var rectShape = new THREE. 阅读全文
posted @ 2021-11-17 08:06 西北逍遥 阅读(1252) 评论(0) 推荐(1)
摘要:colors const colors = { 'aliceblue': 0xF0F8FF, 'antiquewhite': 0xFAEBD7, 'aqua': 0x00FFFF, 'aquamarine': 0x7FFFD4, 'azure': 0xF0FFFF, 'beige': 0xF5F5D 阅读全文
posted @ 2021-11-14 14:01 西北逍遥 阅读(227) 评论(0) 推荐(0)
摘要:threejs绘图 function test17(){ var group = new THREE.Group(); var list1 = [[[58.0,-18.0,3452.0],[59.0,-18.0,3446.0],[59.0,18.0,3446.0],[58.0,17.0,3452.0 阅读全文
posted @ 2021-11-13 19:19 西北逍遥 阅读(132) 评论(0) 推荐(0)
摘要:THREE.Geometry function getFace(){ var triangleGeometry = new THREE.Geometry(); var faceArr1=[]; faceArr1.push(new THREE.Vector3(0.0,-7.0,-150.0)); fa 阅读全文
posted @ 2021-11-12 07:31 西北逍遥 阅读(467) 评论(0) 推荐(0)
摘要:SpeechSynthesisUtterance <!DOCTYPE html> <meta charset="utf-8"> <p>This page immediately calls speechSynthesis.speak(new SpeechSynthesisUtterance("hel 阅读全文
posted @ 2021-11-08 17:40 西北逍遥 阅读(1757) 评论(0) 推荐(1)
摘要:gl-matrix.js /** * @fileoverview gl-matrix - High performance matrix and vector operations * @author Brandon Jones * @author Colin MacKenzie IV * @ver 阅读全文
posted @ 2021-05-04 17:10 西北逍遥 阅读(253) 评论(0) 推荐(0)
摘要:Qt echarts 一定要注意,Qt的版本要在qt5.6及其以上,而且要注意自己的开发环境,(如果你用的vs2015开发,而且开发环境是msvc2015_64),好多版本msvc2015_64是没有QtWebEngine、QtWebEngineCore、QtWebEngineWidgets这几个库 阅读全文
posted @ 2020-11-19 16:24 西北逍遥 阅读(1352) 评论(0) 推荐(1)
摘要:echarts 饼图 <!DOCTYPE html> <html> <head> <base href="<%=basePath%>"> <title>测试</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv= 阅读全文
posted @ 2020-11-19 15:59 西北逍遥 阅读(234) 评论(0) 推荐(0)
摘要:qwebchannel.js /**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Copyright 阅读全文
posted @ 2020-11-18 19:47 西北逍遥 阅读(1770) 评论(0) 推荐(0)
摘要:echarts饼图 option = { title: { //text: '某站点用户访问来源', //subtext: '纯属虚构', left: 'center' }, tooltip: { trigger: 'item', formatter: '{a} <br/>{b} : {c} ({d 阅读全文
posted @ 2020-09-26 14:26 西北逍遥 阅读(186) 评论(0) 推荐(0)