Wire up volume calculation
This commit is contained in:
parent
ae80f35a2f
commit
ee666541d5
2 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue