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);
|
Triangles triangles(m);
|
||||||
|
|
||||||
float area = 0.0f;
|
float area = triangles.surface_area();
|
||||||
|
|
||||||
area = triangles.surface_area();
|
|
||||||
|
|
||||||
return area;
|
return area;
|
||||||
}
|
}
|
|
@ -1,15 +1,17 @@
|
||||||
// This source code is property of the Computer Graphics and Visualization
|
// This source code is property of the Computer Graphics and Visualization
|
||||||
// chair of the TU Dresden. Do not distribute!
|
// chair of the TU Dresden. Do not distribute!
|
||||||
// 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;
|
||||||
}
|
}
|
Loading…
Reference in a new issue