fix: remove undefined compute_volume from 3d_print example
This commit is contained in:
@@ -24,7 +24,6 @@ using namespace vde::foundation;
|
|||||||
// ── helpers ──
|
// ── helpers ──
|
||||||
|
|
||||||
/// Compute approximate volume via divergence theorem (loop over faces)
|
/// Compute approximate volume via divergence theorem (loop over faces)
|
||||||
static double compute_volume(const HalfedgeMesh& m) {
|
|
||||||
double vol = 0.0;
|
double vol = 0.0;
|
||||||
for (size_t fi = 0; fi < m.num_faces(); ++fi) {
|
for (size_t fi = 0; fi < m.num_faces(); ++fi) {
|
||||||
auto verts = m.face_vertices(fi);
|
auto verts = m.face_vertices(fi);
|
||||||
@@ -112,7 +111,6 @@ int main() {
|
|||||||
std::cout << " vertices: " << mesh.num_vertices() << "\n"
|
std::cout << " vertices: " << mesh.num_vertices() << "\n"
|
||||||
<< " faces: " << mesh.num_faces() << "\n"
|
<< " faces: " << mesh.num_faces() << "\n"
|
||||||
<< " edges: " << mesh.num_edges() << "\n"
|
<< " edges: " << mesh.num_edges() << "\n"
|
||||||
<< " volume: " << compute_volume(mesh) << " (approx)\n"
|
|
||||||
<< " bounding box:\n"
|
<< " bounding box:\n"
|
||||||
<< " min: (" << bb.min().x() << ", " << bb.min().y() << ", " << bb.min().z() << ")\n"
|
<< " min: (" << bb.min().x() << ", " << bb.min().y() << ", " << bb.min().z() << ")\n"
|
||||||
<< " max: (" << bb.max().x() << ", " << bb.max().y() << ", " << bb.max().z() << ")\n"
|
<< " max: (" << bb.max().x() << ", " << bb.max().y() << ", " << bb.max().z() << ")\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user