CGI/exercise3/src/SurfaceArea.cpp
2019-01-05 18:00:14 +01:00

19 lines
No EOL
391 B
C++

// This source code is property of the Computer Graphics and Visualization
// chair of the TU Dresden. Do not distribute!
// Copyright (C) CGV TU Dresden - All Rights Reserved
#include "SurfaceArea.h"
#include "triangles.h"
#include <iostream>
float ComputeSurfaceArea(const HEMesh& m)
{
Triangles triangles(m);
float area = 0.0f;
area = triangles.surface_area();
return area;
}