Community
Meshmixer
Welcome to Autodesk’s Meshmixer Forums. Share your knowledge, ask questions, and explore popular Meshmixer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can't import a "OFF" (Object File Format) file

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
cellocgw
794 Views, 3 Replies

Can't import a "OFF" (Object File Format) file

Hi,

the documentation says meshmixer will import OFF files, but I tried to import the sample file given in Wikipedia, and I get "error opening file:  cube.off"  with no further information provided.

(meshmixer 3.5.474  on MacOS Catalina) 

For reference, here's the exact contents of the file

OFF
#from wiki page
# cube.off
# A cube
8 6 12
1.0 0.0 1.4142
0.0 1.0 1.4142
-1.0 0.0 1.4142
0.0 -1.0 1.4142
1.0 0.0 0.0
0.0 1.0 0.0
-1.0 0.0 0.0
0.0 -1.0 0.0
4 0 1 2 3 255 0 0 #red
4 7 4 0 3 0 255 0 #green
4 4 5 1 0 0 0 255 #blue
4 5 6 2 1 0 255 0
4 3 2 6 7 0 0 255
4 6 5 4 7 255 0 0

3 REPLIES 3
Message 2 of 4
MagWeb
in reply to: cellocgw

MM doesn't support per face colors which are in this example file.

You need to remove these informations in the lower section to get a basic .OFF :

OFF

8 6 12

1.0  0.0 1.4142
0.0  1.0 1.4142
-1.0  0.0 1.4142
0.0 -1.0 1.4142
1.0  0.0 0.0
0.0  1.0 0.0
-1.0  0.0 0.0
0.0 -1.0 0.0

4  0 1 2 3
4  7 4 0 3
4  4 5 1 0 
4  5 6 2 1
4  3 2 6 7
4  6 5 4 7

 



Gunter Weber
Triangle Artisan

Message 3 of 4
cellocgw
in reply to: MagWeb

@MagWeb it appears MM doesn't allow comment lines either.  I had to delete those (as in your example).

 

Thanks for the explanation 

Message 4 of 4
MagWeb
in reply to: cellocgw

Yep, also no COFF flavour (as Meshlab writes per vertex color to .OFF)



Gunter Weber
Triangle Artisan

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums