摘要:
1:添加點擊事件 window.addEventListener('click', this.onMouseClick, false); 2:在點擊事件中獲取具體信息 // 監(jiān)聽鼠標點擊事件 onMouseClick(event) { event.preventDefault(); this.cur
閱讀全文
posted @ 2025-04-30 09:13
劉世濤6192
閱讀(40)
推薦(0)
摘要:
備住:添加pcd模型想要根據(jù)模型 不同高度 設置不同顏色 利用ShaderMaterial實現(xiàn)自定義 // 添加pcd addPcd(url){ // 加載 PCD 文件 // loader.load('http://youid:60022/112233/partition/050.pcd', (l
閱讀全文
posted @ 2025-04-30 09:07
劉世濤6192
閱讀(26)
推薦(0)
摘要:
頁面 <template> <div> <input type="file" @change="handleFileUpload" accept=".pcd" /> <input type="file" @change="changeFile" /> <div @click="stringToFil
閱讀全文
posted @ 2024-10-08 09:22
劉世濤6192
閱讀(208)
推薦(0)
摘要:
three.js 創(chuàng)建模型后,想要實現(xiàn)點擊模型獲取模型對象觸發(fā)相應事件。可以使用它提供的API THREE.Raycaster() https://threejs.org/docs/index.html?q=Raycaster#api/en/core/Raycaster //監(jiān)聽點擊事件 windo
閱讀全文
posted @ 2024-10-08 09:19
劉世濤6192
閱讀(602)
推薦(0)
摘要:
demo案例:https://techbrood.com/threejs/examples/#misc_controls_transform TransformControls 是 Three.js 中的一個類,用于在網(wǎng)頁中進行 3D 場景中物體的交互式操作。讓我們來詳細講解它的輸入?yún)?shù)、輸出、屬性
閱讀全文
posted @ 2024-08-19 11:53
劉世濤6192
閱讀(323)
推薦(0)
摘要:
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
閱讀(101)
推薦(0)
摘要:
const query = wx.createSelectorQuery() query.select('#box-body').boundingClientRect() query.selectViewport().scrollOffset(); query.exec(function (res)
閱讀全文
posted @ 2023-09-14 11:01
劉世濤6192
閱讀(2273)
推薦(0)
摘要:
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
閱讀(152)
推薦(0)
摘要:
<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
閱讀(275)
推薦(0)
摘要:
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
閱讀(1383)
推薦(0)