source: cpp/frams/model/geometry/modelgeometryinfo.h @ 237

Last change on this file since 237 was 193, checked in by Maciej Komosinski, 11 years ago

Set svn:eol-style native for all textual files

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1// This file is a part of the Framsticks GDK.
2// Copyright (C) 2002-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
3// Refer to http://www.framsticks.com/ for further information.
4
5#ifndef _MODELGEOMETRYINFO_H_
6#define _MODELGEOMETRYINFO_H_
7
8#include <frams/model/model.h>
9#include <frams/util/3d.h>
10#include <frams/util/list.h>
11
12namespace ModelGeometryInfo
13{
14        void findSizesAndAxesOfModel(const Model &model, const double density, Pt3D &sizes,
15                Orient &axes);
16        bool boundingBox(const Model &model, Pt3D &lowerBoundary, Pt3D &upperBoundary);
17        void boundingBox(const Part *part, Pt3D &lowerBoundary, Pt3D &upperBoundary);
18        double volume(const Model &model, const double density);
19        double area(const Model &model, const double density);
20        double externalAreaOfPart(const Model &model, const int partIndex, const double density);
21        double externalAreaOfEllipsoid(const Model &model, const int partIndex, const double density);
22        double externalAreaOfCuboid(const Model &model, const int partIndex, const double density);
23        double externalAreaOfCylinder(const Model &model, const int partIndex, const double density);
24}
25
26#endif
Note: See TracBrowser for help on using the repository browser.