1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-21 21:28:33 +00:00

3d:: choice of end type for pipes

This commit is contained in:
Zeno Rogue
2022-07-14 11:28:24 +02:00
parent 6c4a53c001
commit 3b4571aa16
3 changed files with 25 additions and 7 deletions

View File

@@ -3987,8 +3987,8 @@ EX void gridline(const shiftmatrix& V1, const hyperpoint h1, const shiftmatrix&
if(WDIM == 3 && fat_edges) {
shiftmatrix T = V1 * rgpushxto0(h1);
transmatrix S = rspintox(inverse_shift(T, V2) * h2);
transmatrix U = rspintoc(inverse_shift(T*S, shiftless(C0)), 2, 1) * cspin(1, 2, 180*degree);
auto& p = queuepoly(T * S * U, cgi.generate_pipe(d, vid.linewidth), col);
transmatrix U = rspintoc(inverse_shift(T*S, shiftless(C0)), 2, 1);
auto& p = queuepoly(T * S * U, cgi.generate_pipe(d, vid.linewidth, ePipeEnd::ball), col);
p.intester = xpush0(d/2);
return;
}