From 1997ce73a6668cd9474dac707128a84f428ca5ec Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 25 Apr 2025 09:30:02 +0200 Subject: [PATCH] export clipping --- graph.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/graph.cpp b/graph.cpp index 15f4a635..aee2b06a 100644 --- a/graph.cpp +++ b/graph.cpp @@ -4242,7 +4242,7 @@ EX ld mousedist(shiftmatrix T) { return sqhypot_d(2, h1) + (point_behind(T1) ? 1e10 : 0); } -vector> clipping_plane_sets; +EX vector> clipping_plane_sets; EX int noclipped; EX bool frustum_culling = true; @@ -4255,7 +4255,7 @@ EX bool other_stereo_mode() { return vid.stereo_mode != sOFF; } -void make_clipping_planes() { +EX void make_clipping_planes() { #if MAXMDIM >= 4 clip_checked = false; if(!frustum_culling || PIU(sphere) || experimental || other_stereo_mode() || gproduct || embedded_plane) return; @@ -4323,12 +4323,12 @@ void make_clipping_planes() { #endif } -bool clipped_by(const hyperpoint& H, const vector& v) { +EX bool clipped_by(const hyperpoint& H, const vector& v) { for(auto& cpoint: v) if((H|cpoint) < -threshold) return true; return false; } -bool clipped_by(const hyperpoint& H, const vector>& vv) { +EX bool clipped_by(const hyperpoint& H, const vector>& vv) { for(auto& cps: vv) if(!clipped_by(H, cps)) return false; return true; }