diff --git a/src/VizumCamera.cpp b/src/VizumCamera.cpp index d9f6d02..07b8ff3 100644 --- a/src/VizumCamera.cpp +++ b/src/VizumCamera.cpp @@ -906,7 +906,17 @@ bool VizumCamera::CapturePointCloudWithAutoDetect(PointCloud& pointCloud, int ti } else { LOG_INFO("[VizumCamera] Laser detection initialized successfully"); } - + + // 2.5 启用激光点填充:SDK 对每条激光线输出定长点序列,无测量处填充占位点, + // 使扫描线构成真正列对齐的 W×H 栅格(供组织化点云保存/栅格聚类使用) + result = VzNL_EnableFillLaserPoint(m_deviceHandle, VzTrue); + if (result != 0) { + VzNL_GetErrorInfo(result, errorMsg); + LOG_WARN("[VizumCamera] VzNL_EnableFillLaserPoint failed: {} (error code: {})", errorMsg, result); + } else { + LOG_INFO("[VizumCamera] Fill laser point mode enabled (rasterized scan lines)"); + } + // 3. 启动自动检测模式(与VznlCamera::StartAutoDetect一致) m_isPaused = false; LOG_INFO("[VizumCamera] Step 2: Starting AutoDetectEx...");