fix: remove undefined compute_volume from 3d_print example
CI / Build & Test (push) Failing after 31s
CI / Release Build (push) Failing after 36s

This commit is contained in:
茂之钳
2026-07-24 10:37:31 +00:00
parent 1cca3edd21
commit 583ff3ae2e
-2
View File
@@ -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"