{"action":"created","issue":{"url":"https://api.github.com/repos/openscad/openscad/issues/1854","repository_url":"https://api.github.com/repos/openscad/openscad","labels_url":"https://api.github.com/repos/openscad/openscad/issues/1854/labels{/name}","comments_url":"https://api.github.com/repos/openscad/openscad/issues/1854/comments","events_url":"https://api.github.com/repos/openscad/openscad/issues/1854/events","html_url":"https://github.com/openscad/openscad/issues/1854","id":187377297,"number":1854,"title":"CGAL error with second object","user":{"login":"indazoo","id":7868519,"avatar_url":"https://avatars.githubusercontent.com/u/7868519?v=3","gravatar_id":"","url":"https://api.github.com/users/indazoo","html_url":"https://github.com/indazoo","followers_url":"https://api.github.com/users/indazoo/followers","following_url":"https://api.github.com/users/indazoo/following{/other_user}","gists_url":"https://api.github.com/users/indazoo/gists{/gist_id}","starred_url":"https://api.github.com/users/indazoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indazoo/subscriptions","organizations_url":"https://api.github.com/users/indazoo/orgs","repos_url":"https://api.github.com/users/indazoo/repos","events_url":"https://api.github.com/users/indazoo/events{/privacy}","received_events_url":"https://api.github.com/users/indazoo/received_events","type":"User","site_admin":false},"labels":[{"id":42347911,"url":"https://api.github.com/repos/openscad/openscad/labels/CGAL","name":"CGAL","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-11-04T16:21:40Z","updated_at":"2016-11-12T04:58:04Z","closed_at":null,"body":"Hi\r\nBelow is my part as I create it as polyhedron. It renders fine (F6) and can be exported to STL. Netfabb is happy with it.\r\nBut as soon I add another part, the CGAL error kicks in.\r\nWhat shall I do? Any tips welcome.\r\n\r\nOutput: \r\n```\r\nSaved backup file: C:/Users/User/Documents/OpenSCAD/backups/unsaved-backup-Hp148460.scad\r\nCompiling design (CSG Tree generation)...\r\nRendering Polygon Mesh using CGAL...\r\nERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: e->incident_sface() != SFace_const_handle() File: /data/OpenSCAD/libraries-mingw64-master/mxe-w64/usr/x86_64-w64-mingw32.static/include/CGAL/Nef_S2/SM_const_decorator.h Line: 326 \r\nGeometries in cache: 27\r\nGeometry cache size in bytes: 251728\r\nCGAL Polyhedrons in cache: 4\r\nCGAL cache size in bytes: 11104\r\nTotal rendering time: 0 hours, 0 minutes, 0 seconds\r\n   Top level object is a 3D object:\r\n   Simple:        yes\r\n   Vertices:        8\r\n   Halfedges:      24\r\n   Edges:          12\r\n   Halffacets:     12\r\n   Facets:          6\r\n   Volumes:         2\r\nRendering finished.\r\n```\r\n\r\nCode:\r\n\r\n```\r\ntranslate([10,10,10])\r\ncube([2,2,2]);\r\n\r\npolyhedron(points = [[0, 0, -4], [2, 0, -4], [4.46705, 0, -4], [4.46705, 0, -4], [5.54958, 0, -3.375], [4.46705, 0, -3.375], [5.54958, 0, -3.175], [4.46705, 0, -3.175], [4.46705, 0, -2.55], [4.46705, 0, -2.55], [4.46705, 0, -2], [4.46705, 0, -2], [4.46705, 0, -1.375], [4.46705, 0, -1.375], [4.46705, 0, -1.175], [4.46705, 0, -1.175], [4.46705, 0, -0.55], [4.46705, 0, -0.55], [4.46705, 0, 0], [4.46705, 0, 0], [4.46705, 0, 0.625], [4.46705, 0, 0.625], [4.46705, 0, 0.825], [4.46705, 0, 0.825], [4.46705, 0, 1.45], [4.46705, 0, 1.45], [4.46705, 0, 2], [4.46705, 0, 2], [4.46705, 0, 2.625], [4.46705, 0, 2.625], [4.46705, 0, 2.825], [4.46705, 0, 2.825], [4.46705, 0, 3.45], [4.46705, 0, 3.45], [4.46705, 0, 4], [4.46705, 0, 4], [2, 0, 0], [0, 0, 0], [0, 0, -3.71429], [1.24698, 1.56366, -3.71429], [2.78516, 3.49248, -3.71429], [2.78516, 3.49248, -3.71429], [3.46011, 4.33884, -3.08929], [2.78516, 3.49248, -3.08929], [3.46011, 4.33884, -2.88929], [2.78516, 3.49248, -2.88929], [2.78516, 3.49248, -2.26429], [2.78516, 3.49248, -2.26429], [2.78516, 3.49248, -1.71429], [2.78516, 3.49248, -1.71429], [2.78516, 3.49248, -1.08929], [2.78516, 3.49248, -1.08929], [2.78516, 3.49248, -0.889286], [2.78516, 3.49248, -0.889286], [2.78516, 3.49248, -0.264286], [2.78516, 3.49248, -0.264286], [2.78516, 3.49248, 0.285714], [2.78516, 3.49248, 0.285714], [2.78516, 3.49248, 0.910714], [2.78516, 3.49248, 0.910714], [2.78516, 3.49248, 1.11071], [2.78516, 3.49248, 1.11071], [2.78516, 3.49248, 1.73571], [2.78516, 3.49248, 1.73571], [2.78516, 3.49248, 2.28571], [2.78516, 3.49248, 2.28571], [1.24698, 1.56366, 0], [0, 0, 0], [0, 0, -3.42857], [-0.445042, 1.94986, -3.42857], [-0.994012, 4.35505, -3.42857], [-0.994012, 4.35505, -3.42857], [-1.2349, 5.41044, -2.80357], [-0.994012, 4.35505, -2.80357], [-1.2349, 5.41044, -2.60357], [-0.994012, 4.35505, -2.60357], [-0.994012, 4.35505, -1.97857], [-0.994012, 4.35505, -1.97857], [-0.994012, 4.35505, -1.42857], [-0.994012, 4.35505, -1.42857], [-0.994012, 4.35505, -0.803571], [-0.994012, 4.35505, -0.803571], [-0.994012, 4.35505, -0.603571], [-0.994012, 4.35505, -0.603571], [-0.994012, 4.35505, 0.0214286], [-0.994012, 4.35505, 0.0214286], [-0.994012, 4.35505, 0.571429], [-0.994012, 4.35505, 0.571429], [-0.994012, 4.35505, 1.19643], [-0.994012, 4.35505, 1.19643], [-0.994012, 4.35505, 1.39643], [-0.994012, 4.35505, 1.39643], [-0.994012, 4.35505, 2.02143], [-0.994012, 4.35505, 2.02143], [-0.994012, 4.35505, 2.57143], [-0.994012, 4.35505, 2.57143], [-0.445042, 1.94986, 0], [0, 0, 0], [0, 0, -3.14286], [-1.80194, 0.867767, -3.14286], [-4.02467, 1.93818, -3.14286], [-4.02467, 1.93818, -3.14286], [-5, 2.40787, -2.51786], [-4.02467, 1.93818, -2.51786], [-5, 2.40787, -2.31786], [-4.02467, 1.93818, -2.31786], [-4.02467, 1.93818, -1.69286], [-4.02467, 1.93818, -1.69286], [-4.02467, 1.93818, -1.14286], [-4.02467, 1.93818, -1.14286], [-4.02467, 1.93818, -0.517857], [-4.02467, 1.93818, -0.517857], [-4.02467, 1.93818, -0.317857], [-4.02467, 1.93818, -0.317857], [-4.02467, 1.93818, 0.307143], [-4.02467, 1.93818, 0.307143], [-4.02467, 1.93818, 0.857143], [-4.02467, 1.93818, 0.857143], [-4.02467, 1.93818, 1.48214], [-4.02467, 1.93818, 1.48214], [-4.02467, 1.93818, 1.68214], [-4.02467, 1.93818, 1.68214], [-4.02467, 1.93818, 2.30714], [-4.02467, 1.93818, 2.30714], [-4.02467, 1.93818, 2.85714], [-4.02467, 1.93818, 2.85714], [-1.80194, 0.867767, 0], [0, 0, 0], [0, 0, -2.85714], [-1.80194, -0.867767, -2.85714], [-4.02467, -1.93818, -2.85714], [-4.02467, -1.93818, -2.85714], [-5, -2.40787, -2.23214], [-4.02467, -1.93818, -2.23214], [-5, -2.40787, -2.03214], [-4.02467, -1.93818, -2.03214], [-4.02467, -1.93818, -1.40714], [-4.02467, -1.93818, -1.40714], [-4.02467, -1.93818, -0.857143], [-4.02467, -1.93818, -0.857143], [-4.02467, -1.93818, -0.232143], [-4.02467, -1.93818, -0.232143], [-4.02467, -1.93818, -0.0321429], [-4.02467, -1.93818, -0.0321429], [-4.02467, -1.93818, 0.592857], [-4.02467, -1.93818, 0.592857], [-4.02467, -1.93818, 1.14286], [-4.02467, -1.93818, 1.14286], [-4.02467, -1.93818, 1.76786], [-4.02467, -1.93818, 1.76786], [-4.02467, -1.93818, 1.96786], [-4.02467, -1.93818, 1.96786], [-4.02467, -1.93818, 2.59286], [-4.02467, -1.93818, 2.59286], [-4.02467, -1.93818, 3.14286], [-4.02467, -1.93818, 3.14286], [-1.80194, -0.867767, 0], [0, 0, 0], [0, 0, -2.57143], [-0.445042, -1.94986, -2.57143], [-0.994012, -4.35505, -2.57143], [-0.994012, -4.35505, -2.57143], [-1.2349, -5.41044, -1.94643], [-0.994012, -4.35505, -1.94643], [-1.2349, -5.41044, -1.74643], [-0.994012, -4.35505, -1.74643], [-0.994012, -4.35505, -1.12143], [-0.994012, -4.35505, -1.12143], [-0.994012, -4.35505, -0.571429], [-0.994012, -4.35505, -0.571429], [-0.994012, -4.35505, 0.0535714], [-0.994012, -4.35505, 0.0535714], [-0.994012, -4.35505, 0.253571], [-0.994012, -4.35505, 0.253571], [-0.994012, -4.35505, 0.878571], [-0.994012, -4.35505, 0.878571], [-0.994012, -4.35505, 1.42857], [-0.994012, -4.35505, 1.42857], [-0.994012, -4.35505, 2.05357], [-0.994012, -4.35505, 2.05357], [-0.994012, -4.35505, 2.25357], [-0.994012, -4.35505, 2.25357], [-0.994012, -4.35505, 2.87857], [-0.994012, -4.35505, 2.87857], [-0.994012, -4.35505, 3.42857], [-0.994012, -4.35505, 3.42857], [-0.445042, -1.94986, 0], [0, 0, 0], [0, 0, -2.28571], [1.24698, -1.56366, -2.28571], [2.78516, -3.49248, -2.28571], [2.78516, -3.49248, -2.28571], [3.46011, -4.33884, -1.66071], [2.78516, -3.49248, -1.66071], [3.46011, -4.33884, -1.46071], [2.78516, -3.49248, -1.46071], [2.78516, -3.49248, -0.835714], [2.78516, -3.49248, -0.835714], [2.78516, -3.49248, -0.285714], [2.78516, -3.49248, -0.285714], [2.78516, -3.49248, 0.339286], [2.78516, -3.49248, 0.339286], [2.78516, -3.49248, 0.539286], [2.78516, -3.49248, 0.539286], [2.78516, -3.49248, 1.16429], [2.78516, -3.49248, 1.16429], [2.78516, -3.49248, 1.71429], [2.78516, -3.49248, 1.71429], [2.78516, -3.49248, 2.33929], [2.78516, -3.49248, 2.33929], [2.78516, -3.49248, 2.53929], [2.78516, -3.49248, 2.53929], [2.78516, -3.49248, 3.16429], [2.78516, -3.49248, 3.16429], [2.78516, -3.49248, 3.71429], [2.78516, -3.49248, 3.71429], [1.24698, -1.56366, 0], [0, 0, 0], [4.46705, 0, 0], [3.36016, 2.29847, 0], [2.78516, 3.49248, 0], [1.59004, 3.76526, 0], [-0.710574, 4.29036, 0], [-0.90509, 4.33476, 0], [-0.994012, 4.35505, 0], [-3.00257, 2.75328, 0], [-4.02467, 1.93818, 0], [-4.02467, 0.585254, 0], [-4.02467, -1.93818, 0], [-3.91771, -2.02348, 0], [-3.68372, -2.21008, 0], [-2.5762, -3.0933, 0], [-1.56226, -3.90189, 0], [-1.17229, -4.21288, 0], [-0.994012, -4.35505, 0], [1.37723, -3.81383, 0], [2.78516, -3.49248, 0], [3.31281, -2.3968, 0], [4.46705, 0, -4]], \r\nfaces = [[2, 4, 42], [2, 42, 40], [4, 6, 44], [4, 44, 42], [6, 8, 46], [6, 46, 44], [8, 10, 48], [8, 48, 46], [10, 12, 50], [10, 50, 48], [12, 14, 52], [12, 52, 50], [14, 16, 54], [14, 54, 52], [1, 11, 9], [1, 9, 7], [1, 7, 5], [1, 5, 3], [4, 2, 5], [7, 4, 5], [6, 4, 7], [9, 6, 7], [66, 36, 1], [66, 1, 39], [40, 42, 72], [40, 72, 70], [42, 44, 74], [42, 74, 72], [44, 46, 76], [44, 76, 74], [46, 48, 78], [46, 78, 76], [48, 50, 80], [48, 80, 78], [50, 52, 82], [50, 82, 80], [96, 66, 39], [96, 39, 69], [70, 72, 102], [70, 102, 100], [72, 74, 104], [72, 104, 102], [74, 76, 106], [74, 106, 104], [76, 78, 108], [76, 108, 106], [78, 80, 110], [78, 110, 108], [80, 82, 112], [80, 112, 110], [126, 96, 69], [126, 69, 99], [100, 102, 132], [100, 132, 130], [102, 104, 134], [102, 134, 132], [104, 106, 136], [104, 136, 134], [106, 108, 138], [106, 138, 136], [108, 110, 140], [108, 140, 138], [110, 112, 142], [110, 142, 140], [156, 126, 99], [156, 99, 129], [130, 132, 162], [130, 162, 160], [132, 134, 164], [132, 164, 162], [134, 136, 166], [134, 166, 164], [136, 138, 168], [136, 168, 166], [186, 156, 129], [186, 129, 159], [160, 162, 192], [160, 192, 190], [162, 164, 194], [162, 194, 192], [164, 166, 196], [164, 196, 194], [166, 168, 198], [166, 198, 196], [216, 186, 159], [216, 159, 189], [190, 192, 12], [190, 12, 10], [192, 194, 14], [192, 14, 12], [194, 196, 16], [194, 16, 14], [196, 198, 18], [196, 18, 16], [36, 216, 189], [36, 189, 1], [16, 18, 218], [219, 16, 218], [220, 16, 219], [16, 220, 54], [221, 54, 220], [222, 54, 221], [52, 54, 222], [223, 52, 222], [224, 52, 223], [52, 224, 82], [225, 82, 224], [226, 82, 225], [82, 226, 112], [227, 112, 226], [228, 112, 227], [112, 228, 142], [229, 142, 228], [230, 142, 229], [140, 142, 230], [231, 140, 230], [232, 140, 231], [138, 140, 232], [233, 138, 232], [234, 138, 233], [138, 234, 168], [235, 168, 234], [236, 168, 235], [168, 236, 198], [237, 198, 236], [218, 198, 237], [198, 218, 18], [36, 66, 220, 219, 218], [66, 96, 224, 223, 222, 221, 220], [96, 126, 226, 225, 224], [126, 156, 228, 227, 226], [156, 186, 234, 233, 232, 231, 230, 229, 228], [186, 216, 236, 235, 234], [216, 36, 218, 237, 236], [1, 2, 40, 1, 40, 39], [39, 40, 70, 39, 70, 69], [69, 70, 100, 69, 100, 99], [99, 100, 130, 99, 130, 129], [129, 130, 160, 129, 160, 159], [159, 160, 190, 159, 190, 189], [189, 190, 10, 189, 10, 1]], \r\nconvexity = 1);\r\n```"},"comment":{"url":"https://api.github.com/repos/openscad/openscad/issues/comments/260102132","html_url":"https://github.com/openscad/openscad/issues/1854#issuecomment-260102132","issue_url":"https://api.github.com/repos/openscad/openscad/issues/1854","id":260102132,"user":{"login":"kintel","id":186094,"avatar_url":"https://avatars.githubusercontent.com/u/186094?v=3","gravatar_id":"","url":"https://api.github.com/users/kintel","html_url":"https://github.com/kintel","followers_url":"https://api.github.com/users/kintel/followers","following_url":"https://api.github.com/users/kintel/following{/other_user}","gists_url":"https://api.github.com/users/kintel/gists{/gist_id}","starred_url":"https://api.github.com/users/kintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kintel/subscriptions","organizations_url":"https://api.github.com/users/kintel/orgs","repos_url":"https://api.github.com/users/kintel/repos","events_url":"https://api.github.com/users/kintel/events{/privacy}","received_events_url":"https://api.github.com/users/kintel/received_events","type":"User","site_admin":false},"created_at":"2016-11-12T04:58:04Z","updated_at":"2016-11-12T04:58:04Z","body":"@indazoo I guess netfabb is more forgiving, but glancing quickly at your indices, I see this: `[159, 160, 190, 159, 190, 189]`. Note the duplicate vertices. I think this is what constitutes the self-intersecting issue.\r\n"}}
{"actor":{"display_login":"kintel"}}