Skip to content

mjkkirschner/DirectObjLoader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DirectObjLoader

Revit add-in to load a WaveFront OBJ model and generate a DirectShape element from it.

The initial implementation and development history is documented in the article From Hack to App - OBJ Mesh Import to DirectShape.

Image

Sample fire hydrant OBJ file:

Image

Resulting DirectShape element in Revit model:

Image

Input scaling factor 1 versus 0.5 happily produces a gargoyle and a half:

Image

OBJ files defining groups generate a separate DirectShape element for each one:

Image

After adding support for faces with more than four vertices, the sandal.obj test file is loaded successfully, albeit with some missing faces:

Image

Switched from TessellatedShapeBuilder target Mesh to AnyGeometry generated more internal model structure from the sandal.obj test file, still with some missing faces:

Image

Release 2015.0.0.17 improved error handling on degenerate faces:

Image

Wish List

  • Progress bar
  • Support for materials, minimally colour, preferably textures
  • Support for the options provided by the StlImport StlImportProperties class

Author

Jeremy Tammik, The Building Coder, Autodesk Inc.

Dependencies

DirectObjLoader uses the FileFormatWavefront NuGet package based on Dave Kerr's file-format-wavefront GitHub library.

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.

About

Revit add-in to load a WaveFront OBJ model and generate a DirectShape element from it.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%