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: github.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:3f8d8b7c-8f63-3437-aadd-8db431a9f0d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C13C:275F42:2B8A6FC:3AB505A:696AEC29 |
| html-safe-nonce | 29cf0a3255e657d39827f29fe382e06ce953239034c87b1edb09ad7b2c1a2260 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTNDOjI3NUY0MjoyQjhBNkZDOjNBQjUwNUE6Njk2QUVDMjkiLCJ2aXNpdG9yX2lkIjoiNTczOTE3NDI4MzI1NDA5ODk4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 02f465f1a6cff65f1229193f93384d3c9e269f0216005f9f716412324284f377 |
| 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 | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width