sghr / iGeo

iGeo: Computational Design and 3D Modeling Library for Processing
http://igeo.jp
GNU Lesser General Public License v3.0
146 stars 34 forks source link

Surfaces missing when exported *.obj geometry is opened in some software #6

Open ianisl opened 10 years ago

ianisl commented 10 years ago

Hi,

Thanks for this excellent library! It seems that when exporting geometries as .obj, some ISurface elements don't appear as surfaces in some softwares.

For instance, when I open the geometry exported from igeo_tutorial15_2 in Meshlab (or zbrush), I only get some vertices and no faces. Opening the same obj file in Rhino gives the proper geometry.

It seems that geometries created with IMesh are correctly read by meshlab: for instance, geometries exported from igeo_tutorial8_3 appear as proper surfaces (not just vertices).

sghr commented 10 years ago

OBJ importers in some software ignore NURBS surfaces even though OBJ format is defined to contain NURBS surface. In those software, surfaces would be needed to be converted to polygon mesh. I just noticed that igeo doesn't have a quick method to convert ISurface to IMesh. I'll make one.

ianisl commented 10 years ago

Thanks for the explanation. A method to convert ISurface to IMesh would be amazing!