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); Triangles triangles(m);
float area = 0.0f; float area = triangles.surface_area();
area = triangles.surface_area();
return area; return area;
} }

View file

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