pcd点云 - #2
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更描述 / Description
新增 PCD 点云加载 示例(
/expand/PcdViewer),在空白地图上叠加 Three.js 点云,解决示例门户无法直接打开、预览.pcd文件的问题。samples/samples.pcd),也支持导入本地.pcdintensity+rgb)用 JS 直读,避免 pcl.js 无对应点类型导致 WASM 异常createPointCloud3D增加逐点colors,优先于pointColor/colorMap.pcd纳入静态资源;依赖增加pcl.js(体素/去噪走 WASM)Added a PCD point cloud viewer example (
/expand/PcdViewer) so the demo portal can load and inspect.pcdfiles on a blank map.samples/samples.pcd) and supports local.pcdimportintensity+rgbis read in JS to avoid pcl.js WASM failurescreatePointCloud3Daccepts per-pointcolors(takes priority overpointColor/colorMap).pcdas assets; addspcl.jsfor voxel/SOR filters via WASM变更类型 / Type of Change
feat- 新功能 / New featurefix- Bug 修复 / Bug fixdocs- 文档更新 / Documentation updaterefactor- 重构(不影响功能)/ Refactor (no functional change)perf- 性能优化 / Performance improvementchore- 构建/依赖/配置变更 / Build / dependency / config change关联 Issue / Related Issue
无 / N/A
测试说明 / Test Notes
打开示例门户,进入 扩展 → PCD点云加载(
/expand/PcdViewer)确认内置
samples.pcd能加载,HUD 显示点数、字段、包围盒切换着色模式(RGB / 高度 / 强度 / 单色),拖动点大小
开启体素降采样、统计离群点去除,确认渲染点数变化且画面仍可用
点击「导入 PCD 文件」,打开本地
.pcd,确认可替换当前点云「重置视角」后相机回到默认俯仰/朝向
pnpm run build本地构建通过Open the demo portal → Expand → PCD Point Cloud (
/expand/PcdViewer)Confirm the built-in
samples.pcdloads and HUD shows count / fields / boundsSwitch color modes (RGB / height / intensity / single) and adjust point size
Enable voxel downsample and SOR; rendered count should change without breaking the view
Import a local
.pcdand confirm it replaces the current cloud“Reset view” restores the default camera
pnpm run buildsucceeds locallyChecklist
pnpm run build/ Local build passes