The ObjectVolume program calculates the volume, surface area and centroid of a closed triangular mesh represented in an object file (.obj). The process goes through the list of triangles that make up the surface and, for each triangle, forms a tetrahedron with an external point. The program uses the origin (0,0,0). The volume of the tetrahedron is then calculated. Tetrahedrons with back facing triangles are added and those with forward facing triangles are subtracted yielding the object volume.

A detailed description of the process is presented in the ObjectVolumeTutorial.doc document as well as program logic and results.

A key component in the program is a subroutine that calculates the volume of a tetrahedron. Four sets of equations were tested and to my surprise all four produced similar results in accuracy and timing.

Features

  • Includes entire java source code
  • Compares Four Sets of Equations for the Volume of an irregular tetrahedron.
  • Handles multiple non-intersecting items in an object file
  • Runs in less than a second for a surface containing 50,000 triangles.

Project Samples

Project Activity

See All Activity >

License

Public Domain

Follow ObjectVolume

ObjectVolume Web Site

Other Useful Business Software
Simplify IT and security with a single endpoint management platform Icon
Simplify IT and security with a single endpoint management platform

Automate the hardest parts of IT

NinjaOne automates the hardest parts of IT, delivering visibility, security, and control over all endpoints for more than 20,000 customers. The NinjaOne automated endpoint management platform is proven to increase productivity, reduce security risk, and lower costs for IT teams and managed service providers. The company seamlessly integrates with a wide range of IT and security technologies. NinjaOne is obsessed with customer success and provides free and unlimited onboarding, training, and support.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ObjectVolume!

Additional Project Details

Operating Systems

Cygwin, Linux, BSD, Mac, Windows

Intended Audience

Information Technology, Education, Advanced End Users, Engineering

User Interface

Command-line

Programming Language

Java

Related Categories

Java 3D Modeling Software, Java Mathematics Software, Java Education Software

Registered

2016-06-14