Calculates Volume, Surface Area & Centroid of a Closed Triangular Mesh
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.
Free vector,quaternion,matrix math library
Over 75 C++ function for working with vectors, matrix and quaternions. Inside the package there is no cycles, if's, classes or structures. Ideal for designing 3D engines. Headlines of functions are intuitive. For each headline there is a one line comment in Russian. Matrix are presented in OpenGL form 0 4 8 12 1 5 9 13 2 6 10 14 3 7 11 15 Now we are working on adding 50+ more functions for processing the planes, splines, bezier curves and interpolation methods.
Linux Modbus TCP Client
A command line tool to query Modbus TCP hosts. At this stage, the client allows read holding registers only. Useful to read data registers from PLCs or any Modbus TCP compatible equipment.