2025年4月30日
摘要: 1:添加点击事件 window.addEventListener('click', this.onMouseClick, false); 2:在点击事件中获取具体信息 // 监听鼠标点击事件 onMouseClick(event) { event.preventDefault(); this.cur 阅读全文
posted @ 2025-04-30 09:13 刘世涛6192 阅读(4) 评论(0) 推荐(0)
摘要: 备住:添加pcd模型想要根据模型 不同高度 设置不同颜色 利用ShaderMaterial实现自定义 // 添加pcd addPcd(url){ // 加载 PCD 文件 // loader.load('http://youid:60022/112233/partition/050.pcd', (l 阅读全文
posted @ 2025-04-30 09:07 刘世涛6192 阅读(4) 评论(0) 推荐(0)
  2024年10月8日
摘要: 页面 <template> <div> <input type="file" @change="handleFileUpload" accept=".pcd" /> <input type="file" @change="changeFile" /> <div @click="stringToFil 阅读全文
posted @ 2024-10-08 09:22 刘世涛6192 阅读(151) 评论(0) 推荐(0)
摘要: three.js 创建模型后,想要实现点击模型获取模型对象触发相应事件。可以使用它提供的API THREE.Raycaster() https://threejs.org/docs/index.html?q=Raycaster#api/en/core/Raycaster //监听点击事件 windo 阅读全文
posted @ 2024-10-08 09:19 刘世涛6192 阅读(482) 评论(0) 推荐(0)
  2024年8月19日
摘要: demo案例:https://techbrood.com/threejs/examples/#misc_controls_transform TransformControls 是 Three.js 中的一个类,用于在网页中进行 3D 场景中物体的交互式操作。让我们来详细讲解它的输入参数、输出、属性 阅读全文
posted @ 2024-08-19 11:53 刘世涛6192 阅读(212) 评论(0) 推荐(0)
  2024年8月16日
摘要: camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 10000); camera.position.z = 2900; //关键就是设置camera的up为y轴 camera.up 阅读全文
posted @ 2024-08-16 14:57 刘世涛6192 阅读(62) 评论(0) 推荐(0)
  2023年9月14日
摘要: const query = wx.createSelectorQuery() query.select('#box-body').boundingClientRect() query.selectViewport().scrollOffset(); query.exec(function (res) 阅读全文
posted @ 2023-09-14 11:01 刘世涛6192 阅读(2158) 评论(0) 推荐(0)
  2023年6月13日
摘要: const getRangeDate = function (startDate: Date, endDate: Date) { const targetArr = [] const start = new Date(startDate) const end = new Date(endDate) 阅读全文
posted @ 2023-06-13 14:02 刘世涛6192 阅读(139) 评论(0) 推荐(0)
  2022年12月23日
摘要: <div style={{ flex: '1.3', marginRight: '10px', position: 'relative', height: '230px', }} > <Image layout="fill" objectFit="cover" height="230" src="/ 阅读全文
posted @ 2022-12-23 14:58 刘世涛6192 阅读(268) 评论(0) 推荐(0)
  2022年10月19日
摘要: 1.文件下新建SvgIcon文件夹以及子文件index.js,index.vue,svg文件夹(用于存放svg图片) 2.编写index.vue组件 <template> <svg :class="svgClass" aria-hidden="true"> <use :xlink:href="ico 阅读全文
posted @ 2022-10-19 12:04 刘世涛6192 阅读(1371) 评论(0) 推荐(0)