From: Ian Jackson Date: Tue, 7 Nov 2017 17:57:58 +0000 (+0000) Subject: mesh: fix non-manifold (join extents to their mates) X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=2af76630d46fd50155e3a029b21cff32a7554828;p=moebius3.git mesh: fix non-manifold (join extents to their mates) Signed-off-by: Ian Jackson --- diff --git a/meshscad b/meshscad index 3372b0a..bccd0b6 100755 --- a/meshscad +++ b/meshscad @@ -65,11 +65,16 @@ def make_moebius(objname): for v in range(0, nv): for w in range(0, nw+1): + extw = w + if extw > nw/2: extw = nw-w + # each extent wire has to go round twice to meet itself + # (except the middle one, if there is one, where nw/2 = nw - nw/2 + # and it gets to be by itself for s in range(0, ns): sigmas = calc_sigmas([s + sx for sx in (0,1)]) #print('VWS',v,w,s, sigmas, file=sys.stderr) if not w % each_w: - extents[w % nw].quad([ cnr for cnr in qc(v,w,sigmas,False) ]) + extents[extw].quad([ cnr for cnr in qc(v,w,sigmas,False) ]) if False and not v % each_v and w < nw: travers[v].rquad([ cnr for cnr in qc(v,w,sigmas,True) ]) if False and not v % each_v: