From 583ff3ae2ece414b96394d1786b40d1e4da92689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=82=E4=B9=8B=E9=92=B3?= Date: Fri, 24 Jul 2026 10:37:31 +0000 Subject: [PATCH] fix: remove undefined compute_volume from 3d_print example --- examples/08_3d_print/main.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/08_3d_print/main.cpp b/examples/08_3d_print/main.cpp index 20fe736..cd406f9 100644 --- a/examples/08_3d_print/main.cpp +++ b/examples/08_3d_print/main.cpp @@ -24,7 +24,6 @@ using namespace vde::foundation; // ── helpers ── /// Compute approximate volume via divergence theorem (loop over faces) -static double compute_volume(const HalfedgeMesh& m) { double vol = 0.0; for (size_t fi = 0; fi < m.num_faces(); ++fi) { auto verts = m.face_vertices(fi); @@ -112,7 +111,6 @@ int main() { std::cout << " vertices: " << mesh.num_vertices() << "\n" << " faces: " << mesh.num_faces() << "\n" << " edges: " << mesh.num_edges() << "\n" - << " volume: " << compute_volume(mesh) << " (approx)\n" << " bounding box:\n" << " min: (" << bb.min().x() << ", " << bb.min().y() << ", " << bb.min().z() << ")\n" << " max: (" << bb.max().x() << ", " << bb.max().y() << ", " << bb.max().z() << ")\n"