【发布时间】:2021-09-29 16:29:03
【问题描述】:
我尝试使用此导入器http://www.interactivemesh.org/models/jfx3dimporter.html 将 STL 文件导入为三角形网格,当我编写此代码时,IDE 中没有错误:
StlMeshImporter stlImporter = new StlMeshImporter();
stlImporter.read(this.getClass().getResource("Tachi_LP.stl"));
使用此导入语句
import com.interactivemesh.jfx.importer.stl.StlMeshImporter;
这也不会在 IDE 中给我一个错误。
我下载了 zip 文件夹,解压缩并将其作为库添加到 intelliJ 中的项目结构下,我对我使用的 javaFX 库做了同样的事情(版本 17 直接来自他们的网站)
lib 是 javafx 库,突出显示的是导入库。当我尝试运行该程序时,我收到此错误:
package com.interactivemesh.jfx.importer.stl does not exist 是不是我的版本有误,或者它不再与较新版本的 JavaFX 兼容?
【问题讨论】: