// This file is a part of the Framsticks GDK. // Copyright (C) 2002-2014 Maciej Komosinski and Szymon Ulatowski. See LICENSE.txt for details. // Refer to http://www.framsticks.com/ for further information. #ifndef _MODELGEOMETRYINFO_H_ #define _MODELGEOMETRYINFO_H_ #include #include #include namespace ModelGeometryInfo { void findSizesAndAxesOfModel(const Model &model, const double density, Pt3D &sizes, Orient &axes); bool boundingBox(const Model &model, Pt3D &lowerBoundary, Pt3D &upperBoundary); void boundingBox(const Part *part, Pt3D &lowerBoundary, Pt3D &upperBoundary); double volume(const Model &model, const double density); double area(const Model &model, const double density); double externalAreaOfPart(const Model &model, const int partIndex, const double density); double externalAreaOfEllipsoid(const Model &model, const int partIndex, const double density); double externalAreaOfCuboid(const Model &model, const int partIndex, const double density); double externalAreaOfCylinder(const Model &model, const int partIndex, const double density); } #endif