Skip to content

Find out if there is an orientation in which your 3D mesh can stand still - Recommended for 3D printing

License

Notifications You must be signed in to change notification settings

zivsha/WillItStand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Will It Stand

Find out if there is an orientation in which your 3D mesh can stand still

Created By:

  • Ziv Shahaf
  • Kujan Lauz

As part of a 3D-Printing Seminar, under the guidance of Professor Gershon Elber, We wanted to identify, given an input 3D model, Which orientations of the model are suitable for 3D printing.

To find the orientations we needed to come up with an algorithm for finding all the facets (2D planes) on which the 3D model can "stand still".

The process

overview

Start with a 3D mesh input, calculate its convex hul and center of mass. Using CH and COM find balancing facets

Mesh Processing

A minimalistic OBJ file parser was created, with some additional implementation of some geometric representation classes: Vector, Matrix, Polygon3D and Geometric tools for 2D and 3D calculations.

Convex Hull Calculation

Used Qhull under copying right (http://www.qhull.org/COPYING.txt) to get the convex hull of the processed mesh. Qhull have a very un-intuitive library/API and lack proper documentation so after finding out how to use it for our needs I answered a relevant StackOverflow question

Center of Mass Calculation

To calculate the center of mass, we used volInt.c (one of its versions can be found here), the source code of Fast and Accurate Computation of Polyhedral Mass Properties by Brian Mirtich .

Finding Balancing Faces

An O(N) algorithm where N is the number of facets of the convex hull.

About

Find out if there is an orientation in which your 3D mesh can stand still - Recommended for 3D printing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published