CGI/exercise3/src/SurfaceArea.cpp

19 lines
391 B
C++
Raw Normal View History

2019-01-05 15:44:14 +00:00
// This source code is property of the Computer Graphics and Visualization
// chair of the TU Dresden. Do not distribute!
2018-09-06 12:35:43 +00:00
// Copyright (C) CGV TU Dresden - All Rights Reserved
#include "SurfaceArea.h"
2019-01-05 17:00:14 +00:00
#include "triangles.h"
2018-09-06 12:35:43 +00:00
#include <iostream>
2019-01-05 17:00:14 +00:00
float ComputeSurfaceArea(const HEMesh& m)
2019-01-05 15:51:18 +00:00
{
2019-01-05 17:00:14 +00:00
Triangles triangles(m);
2019-01-05 15:51:18 +00:00
2019-01-05 17:00:14 +00:00
float area = 0.0f;
2019-01-05 15:44:14 +00:00
2019-01-05 16:03:55 +00:00
area = triangles.surface_area();
2019-01-05 15:44:14 +00:00
2018-09-06 12:35:43 +00:00
return area;
}