完整报错
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\IO\Geometry\vtkSTLReader.cxx, line 97
vtkSTLReader (0000027753736D90): A FileName must be specified.
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\Common\ExecutionModel\vtkExecutive.cxx, line 753
vtkCompositeDataPipeline (000002775C7349E0): Algorithm vtkSTLReader(0000027753736D90) returned failure for request: vtkInformation (000002775C3081B0)
Debug: Off
Modified Time: 52611
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\IO\Geometry\vtkSTLReader.cxx, line 97
vtkSTLReader (0000027753736B20): A FileName must be specified.
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\Common\ExecutionModel\vtkExecutive.cxx, line 753
vtkCompositeDataPipeline (000002775C733FE0): Algorithm vtkSTLReader(0000027753736B20) returned failure for request: vtkInformation (000002775C308CA0)
Debug: Off
Modified Time: 125835
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\IO\Geometry\vtkSTLReader.cxx, line 97
vtkSTLReader (00000277537371A0): A FileName must be specified.
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\Common\ExecutionModel\vtkExecutive.cxx, line 753
vtkCompositeDataPipeline (000002775C733CE0): Algorithm vtkSTLReader(00000277537371A0) returned failure for request: vtkInformation (000002775C3081B0)
Debug: Off
Modified Time: 125980
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\IO\Geometry\vtkSTLReader.cxx, line 97
vtkSTLReader (00000277537379C0): A FileName must be specified.
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\Common\ExecutionModel\vtkExecutive.cxx, line 753
vtkCompositeDataPipeline (000002775C7324E0): Algorithm vtkSTLReader(00000277537379C0) returned failure for request: vtkInformation (000002775C307C60)
Debug: Off
Modified Time: 244547
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\IO\Geometry\vtkSTLReader.cxx, line 97
vtkSTLReader (0000027753736B20): A FileName must be specified.
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\Common\ExecutionModel\vtkExecutive.cxx, line 753
vtkCompositeDataPipeline (000002775C732EE0): Algorithm vtkSTLReader(0000027753736B20) returned failure for request: vtkInformation (000002775C3081B0)
Debug: Off
Modified Time: 349445
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\IO\Geometry\vtkSTLReader.cxx, line 97
vtkSTLReader (0000027753736B20): A FileName must be specified.
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\Common\ExecutionModel\vtkExecutive.cxx, line 753
vtkCompositeDataPipeline (000002775C733CE0): Algorithm vtkSTLReader(0000027753736B20) returned failure for request: vtkInformation (000002775C3087A0)
Debug: Off
Modified Time: 398181
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\IO\Geometry\vtkSTLReader.cxx, line 97
vtkSTLReader (0000027753736B20): A FileName must be specified.
ERROR: In D:\vs2022\Qt_VTK\vtk-v9.1.0\vtk-v9.1.0\Common\ExecutionModel\vtkExecutive.cxx, line 753
vtkCompositeDataPipeline (000002775C733CE0): Algorithm vtkSTLReader(0000027753736B20) returned failure for request: vtkInformation (000002775C308ED0)
Debug: Off
Modified Time: 457347
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0
报错描述
报错是随机的,每次运行读取失败的stl文件也不同
解释我要实现的功能
现在我要遍历几千个stl文件,对于其中一个stl文件,我要读取他们的一些数据属性,然后进行判断
流程图:
相关demo:
QObject::connect(ui->pushButton, &QPushButton::clicked,
this, &MainWindow::onDetermine);
void MainWindow::onDetermine()
{

文章讲述了在使用VTK库中的vtkSTLReader处理STL文件时遇到的错误,错误提示文件名未指定,以及通过将智能指针设置为全局变量解决内存问题的过程。

最低0.47元/天 解锁文章
33

被折叠的 条评论
为什么被折叠?



