Title: Unexpected behavior with hole and hull? · Issue #190 · SolidCode/SolidPython · GitHub
Open Graph Title: Unexpected behavior with hole and hull? · Issue #190 · SolidCode/SolidPython
X Title: Unexpected behavior with hole and hull? · Issue #190 · SolidCode/SolidPython
Description: Hello, I'm not sure whether the behavior is expected or not. But for me it was a bit of a surprise: If I do a hull on two objects with holes, the result is a hull of the object minus a hull of the holes. To make it more clear: Here is an...
Open Graph Description: Hello, I'm not sure whether the behavior is expected or not. But for me it was a bit of a surprise: If I do a hull on two objects with holes, the result is a hull of the object minus a hull of the ...
X Description: Hello, I'm not sure whether the behavior is expected or not. But for me it was a bit of a surprise: If I do a hull on two objects with holes, the result is a hull of the object minus a hull of ...
Opengraph URL: https://github.com/SolidCode/SolidPython/issues/190
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unexpected behavior with hole and hull?","articleBody":"Hello,\r\n\r\nI'm not sure whether the behavior is expected or not. But for me it was a bit of a surprise: If I do a hull on two objects with holes, the result is a hull of the object minus a hull of the holes. To make it more clear: Here is an example:\r\n\r\n````\r\n#!/usr/bin/env python3\r\n\r\nfrom solid import *\r\nfrom solid.utils import *\r\n\r\nc = cylinder(r=10) - hole()(cylinder(r=5))\r\nx = hull()(c, left(10)(c))\r\nprint(scad_render(x))\r\n````\r\n\r\nThis generates one long hole:\r\n````\r\ndifference(){\r\n hull() {\r\n difference() {\r\n cylinder(r = 10);\r\n }\r\n translate(v = [-10, 0, 0]) {\r\n difference() {\r\n cylinder(r = 10);\r\n }\r\n }\r\n }\r\n /* Holes Below*/\r\n hull(){\r\n union(){\r\n cylinder(r = 5);\r\n }\r\n translate(v = [-10, 0, 0]){\r\n union(){\r\n cylinder(r = 5);\r\n }\r\n }\r\n } /* End Holes */ \r\n}\r\n````\r\n\r\n\r\nI would have expected two round holes:\r\n````\r\n\r\ndifference(){\r\n hull() {\r\n difference() {\r\n cylinder(r = 10);\r\n }\r\n translate(v = [-10, 0, 0]) {\r\n difference() {\r\n cylinder(r = 10);\r\n }\r\n }\r\n }\r\n /* Holes Below*/\r\n union(){\r\n cylinder(r = 5);\r\n }\r\n translate(v = [-10, 0, 0]){\r\n union(){\r\n cylinder(r = 5);\r\n }\r\n } /* End Holes */ \r\n}\r\n````\r\n\r\n\r\nIs that expected behavior?","author":{"url":"https://github.com/c-mauderer","@type":"Person","name":"c-mauderer"},"datePublished":"2021-11-27T18:57:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/190/SolidPython/issues/190"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0a700bbc-5af8-1317-c679-6a404b1e1ee6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B122:112DEB:4398CC:5FE8D6:696FA6A9 |
| html-safe-nonce | bf04717907d46721e238d4a6d4c0ed41d26d4b8dcf4579d5e8cb278a3fb72e41 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTIyOjExMkRFQjo0Mzk4Q0M6NUZFOEQ2OjY5NkZBNkE5IiwidmlzaXRvcl9pZCI6IjgwMjQ0NDQwODEyOTI2ODI5MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8cbbeff8a3d1bf7d82545654c2fe978ccc60f54f31d850fb765119287b9abb18 |
| hovercard-subject-tag | issue:1065109645 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/SolidCode/SolidPython/190/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5660ddb17cedad7411cb1a8b46cce327a323b1f90538ded5eca96ce6c3f663a3/SolidCode/SolidPython/issues/190 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5660ddb17cedad7411cb1a8b46cce327a323b1f90538ded5eca96ce6c3f663a3/SolidCode/SolidPython/issues/190 |
| og:image:alt | Hello, I'm not sure whether the behavior is expected or not. But for me it was a bit of a surprise: If I do a hull on two objects with holes, the result is a hull of the object minus a hull of the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | c-mauderer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0ca8d8c65612640b9a1a588b3eed68222ca723ed2d028b18fe81b28936d535eb |
| turbo-cache-control | no-preview |
| go-import | github.com/SolidCode/SolidPython git https://github.com/SolidCode/SolidPython.git |
| octolytics-dimension-user_id | 622839 |
| octolytics-dimension-user_login | SolidCode |
| octolytics-dimension-repository_id | 1377446 |
| octolytics-dimension-repository_nwo | SolidCode/SolidPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1377446 |
| octolytics-dimension-repository_network_root_nwo | SolidCode/SolidPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 95f60616ce2765d1114fe6da4af405a58c6d26d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width