question

Steven Chen avatar image
1 Like"
Steven Chen asked Phil BoBo edited

Issue on importing 3d shape

Hi,

I found an issue of 18.0.2.

An obj shape file fails to import into 18.0.2 that object is invisible.

Import into 17.2.5 is fine.

pg.rar

FlexSim 18.0.2
3d shape
pg.rar (1.1 MiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
3 Likes"
Phil BoBo answered Phil BoBo edited

In 18.0, we updated the assimp library to a newer version. This included an updated obj importer.

This appears to be a bug with how the importer is handling this particular obj file. The latest obj importer is throwing an exception on an out-of-range vertex index, but the older obj importer silently handled it just fine.

For now, you can convert the file into a different format in order to render it correctly.

Attached (pg.ac) is the same shape saved as an ac file using AC3D.

Also attached (pg2.zip) is the same file saved as an obj from AC3D.

Both of these files, exported using AC3D, import correctly into FlexSim.


pg.ac (2.9 MiB)
pg2.zip (1.1 MiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Phil BoBo avatar image Phil BoBo ♦♦ commented ·

On closer inspection, the issue with the newer importer seems related to the comment on line 8 that contains a backslash:

If you remove the backslash, then the file imports just fine:

The out-of-bounds error seems to be related to the importer interpreting that backslash as continuing the comment onto the next line, thus skipping the first vertex.

0 Likes 0 ·
1.png (74.0 KiB)
3.png (73.1 KiB)