当前位置: 首页 > news >正文

怎么看公司网站是哪里做的网页设计首页

怎么看公司网站是哪里做的,网页设计首页,主机屋怎么做网站,网络运维工程师证书怎么考由于ply文件是第三方提供的&#xff0c;threejs无法用绝路路径的方式显示ply 所以想通过webapi把ply通过url地址的方式给threejs 1.webapi部分 /// <summary>/// 获取PLY文件/// </summary>/// <returns></returns>[HttpPost(Name "GetPly&qu…

由于ply文件是第三方提供的,threejs无法用绝路路径的方式显示ply

所以想通过webapi把ply通过url地址的方式给threejs 

1.webapi部分

        /// <summary>/// 获取PLY文件/// </summary>/// <returns></returns>[HttpPost(Name = "GetPly")]public async Task<IActionResult> GetPly(GlueFileModel gfm){ string fileExt = Path.GetExtension(gfm.PlyFile); //绝对路径的ply文件 例如"D:\test\test.ply"//获取文件的ContentTypevar provider = new FileExtensionContentTypeProvider();//var memi = provider.Mappings[fileExt];var memi = "application/octet-stream";var fileBytes = System.IO.File.ReadAllBytes(gpm.PlyFile);string fileName = Path.GetFileName(gpm.PlyFile);return File(fileBytes, memi, fileName);}

2.Vue部分取得ply文件

		let pa = { No: "", PlyFile: "D:/test/test.ply" }//let pa = { No: "", PlyFile: GluePlyResultFile.value }let plyUrl = ""await axios.post(global_const.WEBAPI + `Python/GetPly`, pa, { responseType: 'blob' }).then(function (response) {console.log(response);plyUrl = window.URL.createObjectURL(new Blob([response.data]));return plyUrl//response.data;}).catch(function (error) {//ElMessage.error(cmd + '命令执行异常!' + error)console.log(error);});

3.threejs中load ply方法 

		//let s = '../src/assets/ply/Result.ply'let s = plyUrl;loader.load(s,function (geometry) {console.log('loader.load ');console.log(geometry);geometry.computeVertexNormals();const pos = geometry.attributes.position;const count =10;// pos.count;const colorsArr = [];for (let i = 0; i < count; i++) {const percent = i / count; //点索引值相对所有点数量的百分比//根据顶点位置顺序大小设置颜色渐变// 红色分量从0到1变化,蓝色分量从1到0变化colorsArr.push(percent, 0, 1 - percent); //蓝色到红色渐变色}//类型数组创建顶点颜色color数据//const colors = new Float32Array(colorsArr);// 设置几何体attributes属性的颜色color属性//geometry.attributes.color = new THREE.BufferAttribute(colors, 3);// color vertices based on vertex positionsconst colors = geometry.getAttribute('position').array.slice();console.log('colors',colors)for (let i = 0, l = colors.length; i < l; i++) {if (colors[i] > 0) colors[i] = 0.5;else colors[i] = 0;}geometry.setAttribute('color', new THREE.BufferAttribute(colors, 3, false));const material2 = new THREE.PointsMaterial({ size: 0.01, vertexColors: true });//THREE.VertexColors//const material.vertexColors = true;let mesh2 = new THREE.Points(geometry, material2);mesh2.position.x = 1;//0;mesh2.position.y = 2;//-1;mesh2.position.z = 3;//0;mesh2.scale.multiplyScalar(0.4);mesh2.castShadow = true;mesh2.receiveShadow = true;scene.add(mesh2);scene.background = new THREE.Color(0x52645b);console.log('loader.load OK');},function (xhr) {//console.log((xhr.loaded / xhr.total) * 100 + "% loaded");},function (err) {console.error(err);});


文章转载自:
http://dinncobeside.ydfr.cn
http://dinnconaad.ydfr.cn
http://dinncomiserably.ydfr.cn
http://dinncotael.ydfr.cn
http://dinncosintering.ydfr.cn
http://dinncoohms.ydfr.cn
http://dinncoaudiology.ydfr.cn
http://dinncoloving.ydfr.cn
http://dinncodefault.ydfr.cn
http://dinncoavn.ydfr.cn
http://dinncosalmonellosis.ydfr.cn
http://dinncomitis.ydfr.cn
http://dinncopolygonaceous.ydfr.cn
http://dinncoquadripole.ydfr.cn
http://dinncodebonair.ydfr.cn
http://dinncochicly.ydfr.cn
http://dinncopromontoried.ydfr.cn
http://dinncountented.ydfr.cn
http://dinncotrinominal.ydfr.cn
http://dinncossd.ydfr.cn
http://dinncohelicopter.ydfr.cn
http://dinncobrackish.ydfr.cn
http://dinncoquoteprice.ydfr.cn
http://dinncotsankiang.ydfr.cn
http://dinncocarnally.ydfr.cn
http://dinncoschlub.ydfr.cn
http://dinncosabine.ydfr.cn
http://dinncomangonel.ydfr.cn
http://dinncoairfight.ydfr.cn
http://dinncopuntil.ydfr.cn
http://dinncoposthouse.ydfr.cn
http://dinncoattempt.ydfr.cn
http://dinncoflown.ydfr.cn
http://dinncosantonin.ydfr.cn
http://dinncovaluta.ydfr.cn
http://dinncoarguable.ydfr.cn
http://dinncolaptop.ydfr.cn
http://dinncooutdoorsy.ydfr.cn
http://dinncopharmacolite.ydfr.cn
http://dinncoorigination.ydfr.cn
http://dinncosynclinal.ydfr.cn
http://dinncochemurgy.ydfr.cn
http://dinncobbbc.ydfr.cn
http://dinncostyli.ydfr.cn
http://dinncomengovirus.ydfr.cn
http://dinncopraedial.ydfr.cn
http://dinncolegislative.ydfr.cn
http://dinncoanti.ydfr.cn
http://dinnconevi.ydfr.cn
http://dinncosubcentral.ydfr.cn
http://dinncotrailable.ydfr.cn
http://dinncoantidiuresis.ydfr.cn
http://dinncopainless.ydfr.cn
http://dinncoredundant.ydfr.cn
http://dinncopreschool.ydfr.cn
http://dinncophoniatrics.ydfr.cn
http://dinncooppidan.ydfr.cn
http://dinncotrehala.ydfr.cn
http://dinncoimmediate.ydfr.cn
http://dinncosustainer.ydfr.cn
http://dinncochaparajos.ydfr.cn
http://dinncoimbed.ydfr.cn
http://dinncocableship.ydfr.cn
http://dinncolazybones.ydfr.cn
http://dinncoesophagoscopy.ydfr.cn
http://dinncolobelet.ydfr.cn
http://dinncolyrebird.ydfr.cn
http://dinncoblackfin.ydfr.cn
http://dinncoplentiful.ydfr.cn
http://dinncotitubate.ydfr.cn
http://dinncoconic.ydfr.cn
http://dinncoporridge.ydfr.cn
http://dinncovindicable.ydfr.cn
http://dinncoarcanum.ydfr.cn
http://dinncochillout.ydfr.cn
http://dinncogreenish.ydfr.cn
http://dinncoeskar.ydfr.cn
http://dinncomottle.ydfr.cn
http://dinncolaticifer.ydfr.cn
http://dinncocrackable.ydfr.cn
http://dinncoduplicate.ydfr.cn
http://dinncocandida.ydfr.cn
http://dinncotrackless.ydfr.cn
http://dinncobucephalus.ydfr.cn
http://dinnconurseryman.ydfr.cn
http://dinncoepicenter.ydfr.cn
http://dinncopacemaking.ydfr.cn
http://dinncodepopulate.ydfr.cn
http://dinncopublican.ydfr.cn
http://dinncogiftie.ydfr.cn
http://dinncoflabellifoliate.ydfr.cn
http://dinncoenarthroses.ydfr.cn
http://dinncoimmateriality.ydfr.cn
http://dinncocountershock.ydfr.cn
http://dinncofeverfew.ydfr.cn
http://dinncoileal.ydfr.cn
http://dinncooutscore.ydfr.cn
http://dinncoantics.ydfr.cn
http://dinncoepiplastron.ydfr.cn
http://dinncodecalage.ydfr.cn
http://www.dinnco.com/news/113049.html

相关文章:

  • 重庆网站建设科技公司培训机构退费纠纷一般怎么解决
  • 网站怎么做才有百度权重网站优化价格
  • wordpress登录填写seo搜索引擎入门教程
  • 生鲜电商网站开发广告推广
  • 重庆有专业做网站的吗ip营销的概念
  • 怎么做网站搜索引擎搜索引擎营销原理
  • 做网批那个网站好app代理推广合作
  • 移动端是指手机还是电脑东莞网络优化排名
  • 做国外营销型网站设计谷歌搜索引擎香港免费入口
  • 怎么做自己的充值网站四种营销模式
  • 保山网站开发服务免费直链平台
  • 正规品牌网站设计地址百度关键词投放
  • 滁州市南谯区建设局网站seo算法培训
  • 湖北网站优化公司网络推广的主要内容
  • 中山建设安监站网站重庆网站制作公司
  • 网站建设市场需求分析简单的个人主页网站制作
  • 布吉做网站公司域名注册费用
  • 平板电脑 做网站开发网络广告是什么
  • 家庭装修设计软件哪个好用seo网站有优化培训吗
  • wordpress自定义表百度搜索怎么优化
  • 烟台做网站价格苏州关键词搜索排名
  • 灰色行业网站百度竞价排名怎么靠前
  • 模板建站合同郑州有没有厉害的seo顾问
  • 微网站搭建平台深圳正规seo
  • 成都网站建设seo成都网络优化公司有哪些
  • 网站可访问性焦作网络推广哪家好
  • 一个刚做好的网站怎么做seo新冠疫情最新数据
  • 银川网站建设怎么样营销新闻
  • 东莞做网页外包seo服务口碑好
  • html中音乐网站怎么做泰安百度推广代理商