dmsurti / AssimpKit

A library (macOS, iOS) that converts the files supported by Assimp to Scene Kit scenes.
http://assimpkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
474 stars 54 forks source link

Problem with import of a dxf file #106

Open Dopplereffekt94 opened 6 years ago

Dopplereffekt94 commented 6 years ago

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 commented 5 years ago

@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.