Wavefront OBJ export missing faces

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
pmprog
Posts: 5
Joined: Tue Jan 05, 2016 3:05 pm

Re: Wavefront OBJ export missing faces

Post by pmprog »

I've found something out that might be useful.

Save this to an .obj file and load it - you'll see that it misses the top and bottom faces.

Code: Select all

# FreeCAD v0.16 build6179 (Git) Arch module
# http://www.freecadweb.org
o Pad
v -40.0 50.0 0.0
v -40.0 50.0 10.0
v -60.0 40.0 0.0
v -60.0 40.0 10.0
v -50.0 30.0 0.0
v -50.0 30.0 10.0
v -60.0 20.0 0.0
v -60.0 20.0 10.0
v -40.0 10.0 0.0
v -40.0 10.0 10.0
v -20.0 30.0 0.0
v -20.0 30.0 10.0
f 4 3 1 2
f 6 5 3 4
f 8 7 5 6
f 10 9 7 8
f 12 11 9 10
f 2 1 11 12
f 11 9 7 5 3 1
f 2 4 6 8 10 12
However, if you then modify the last two lines to this

Code: Select all

f 11 9 7 5
f 6 8 10 12
It will now render (but not complete, because we've removed vertices from the face)

Don't know if that helps with anything?
User avatar
alecjames
Posts: 13
Joined: Sun Mar 12, 2017 10:15 am

Re: Wavefront OBJ export missing faces

Post by alecjames »

I just had a similar problem, has this been resolved?

I created a cube in part work bench, exported as wavefront obj, imported into a new model = missing faces

I created a cube in part work bench, changed to arch work bench, exported as wavefront obj, imported into a new model = missing faces

I created a cube in part work bench, exported as alias mesh obj, imported into a new model = this worked OK.

(I am actually exporting from freecad and importing into anim8or and seeing missing faces. The alias mesh works for me - that is my solution but I don't know enough about the file formats to know if I will see issues if the export is more complex than a cube.)

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6706 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: f86a4e411ff7848dea98d7242f43b7774bee8fa0
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Post Reply