Wire up volume calculation

This commit is contained in:
hodasemi 2019-01-07 21:50:55 +01:00
parent ae80f35a2f
commit ee666541d5
2 changed files with 8 additions and 8 deletions

View file

@ -11,9 +11,7 @@ float ComputeSurfaceArea(const HEMesh& m)
{
Triangles triangles(m);
float area = 0.0f;
area = triangles.surface_area();
float area = triangles.surface_area();
return area;
}

View file

@ -3,13 +3,15 @@
// Copyright (C) CGV TU Dresden - All Rights Reserved
#include "Volume.h"
#include "triangles.h"
#include <iostream>
float ComputeVolume(const HEMesh& m)
{
float vol = 0;
/*Task 2.2.2*/
std::cout << "Volume calculation is not implemented." << std::endl;
Triangles triangles(m);
float vol = triangles.volume();
return vol;
}