Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with import of a dxf file #106

Open
Dopplereffekt94 opened this issue Jul 5, 2018 · 1 comment
Open

Problem with import of a dxf file #106

Dopplereffekt94 opened this issue Jul 5, 2018 · 1 comment

Comments

@Dopplereffekt94
Copy link

Dear dmsurti,

I tried to use your assimpkit framework to import a dxf file into an AR app written in swift and I am running into a few issues here. Firstly, I am not sure when to use which assimpScene method.

What did I do:
I simply created a simple swift AR application and integrated the assimpkit framework with a bridging header. Then I commented the default view controller scene which would show an aircraft and simply wrote a few lines of code to import the dxf file by an assimpScene and initialized sceneView.scene by using the modelScene attribute.

1. If I try to use the "assimpScene" method I run into a fatal error after the compilation
The issue I am facing seems to be that during that an error occurs during the unwrapping of the file causing a fatal error "Scene importing failed with error Unable to open file "DXF.dxf".
". Xcode also issues this statement: "Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value". I have attached a screenshot of the error and the file.

2. If I try to use the "assimpSceneNamed" method the application starts but nothing is displayed

Could you try to import the dxf file in a sample project and check whether you run into the same issue?

Thanks!
DXF Data.zip

@dmsurti
Copy link
Owner

dmsurti commented Jul 21, 2018

@Dopplereffekt94 can you please try importing the file with this app I have developed using AssimpKit: https://www.isonapps.com. If the app can import the file, then you we can categorize this as a bug. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants