René's URL Explorer Experiment


Title: Triangle can't be solved with two angles and one distance constraint · Issue #4 · KmolYuan/python-solvespace · GitHub

Open Graph Title: Triangle can't be solved with two angles and one distance constraint · Issue #4 · KmolYuan/python-solvespace

X Title: Triangle can't be solved with two angles and one distance constraint · Issue #4 · KmolYuan/python-solvespace

Description: Hi, I'm playing around with python-solvespace and it's great so far - thanks! One problem I found though is that it can't seem to solve the following file: # adapted from https://github.com/KmolYuan/python-solvespace/blob/master/example/...

Open Graph Description: Hi, I'm playing around with python-solvespace and it's great so far - thanks! One problem I found though is that it can't seem to solve the following file: # adapted from https://github.com/KmolYua...

X Description: Hi, I'm playing around with python-solvespace and it's great so far - thanks! One problem I found though is that it can't seem to solve the following file: # adapted from https://github...

Opengraph URL: https://github.com/KmolYuan/python-solvespace/issues/4

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Triangle can't be solved with two angles and one distance constraint","articleBody":"Hi, I'm playing around with `python-solvespace` and it's great so far - thanks! One problem I found though is that it can't seem to solve the following file:\r\n\r\n```python\r\n# adapted from https://github.com/KmolYuan/python-solvespace/blob/master/example/PyDemo.py\r\n\r\nfrom slvs import *\r\n\r\nsys = System()\r\n\r\n# origin Point zero\r\np0 = sys.add_param(0.0)\r\np1 = sys.add_param(0.0)\r\np2 = sys.add_param(0.0)\r\nPoint0 = Point3d(p0, p1, p2)\r\n\r\n# create normal vector\r\n# quaternion represents a plane through the origin\r\nqw, qx, qy, qz = Slvs_MakeQuaternion(1, 0, 0, 0, 1, 0)\r\np3 = sys.add_param(qw)\r\np4 = sys.add_param(qx)\r\np5 = sys.add_param(qy)\r\np6 = sys.add_param(qz)\r\nNormal1 = Normal3d(p3, p4, p5, p6)\r\n\r\n# create workplane (a plane to draw 2D points on), defined by\r\n# the origin point and the normal vector\r\nWorkplane1 = Workplane(Point0, Normal1)\r\n\r\n\r\n###\r\n# triangle\r\n\r\np7 = sys.add_param(-22.92)\r\np8 = sys.add_param(-6.77)\r\nPoint1 = Point2d(Workplane1, p7, p8)\r\n\r\np9 = sys.add_param(25.55)\r\np10 = sys.add_param(-19.02)\r\nPoint2 = Point2d(Workplane1, p9, p10)\r\n\r\np11 = sys.add_param(25.55)\r\np12 = sys.add_param(-19.02)\r\nPoint3 = Point2d(Workplane1, p11, p12)\r\n\r\np13 = sys.add_param(11.92)\r\np14 = sys.add_param(29.07)\r\nPoint4 = Point2d(Workplane1, p13, p14)\r\n\r\np15 = sys.add_param(11.92)\r\np16 = sys.add_param(29.07)\r\nPoint5 = Point2d(Workplane1, p15, p16)\r\n\r\np17 = sys.add_param(-22.92)\r\np18 = sys.add_param(-6.77)\r\nPoint6 = Point2d(Workplane1, p17, p18)\r\n\r\nLine1 = LineSegment2d(Workplane1, Point1, Point2)\r\nLine2 = LineSegment2d(Workplane1, Point3, Point4)\r\nLine3 = LineSegment2d(Workplane1, Point5, Point6)\r\n\r\n# constrain edges of lines at each vertex to be coincident\r\nConstraint.on(Workplane1, Point1, Point6)\r\nConstraint.on(Workplane1, Point2, Point3)\r\nConstraint.on(Workplane1, Point4, Point5)\r\n\r\n# set one side length and two angles\r\nConstraint.distance(50, Workplane1, Point1, Point2)\r\nConstraint.angle(Workplane1, 60, Line1, Line2)\r\nConstraint.angle(Workplane1, 60, Line2, Line3)\r\n\r\n# alternatively, set two distances and one angle\r\n#Constraint.distance(50, Workplane1, Point1, Point2)\r\n#Constraint.distance(50, Workplane1, Point3, Point4)\r\n#Constraint.angle(Workplane1, 60, Line2, Line3)\r\n\r\nsys.calculateFaileds = 1\r\nsys.solve()\r\nresult = sys.result\r\n\r\nif result == SLVS_RESULT_OKAY:\r\n    print(\"OK\")\r\nelif result == SLVS_RESULT_INCONSISTENT:\r\n    print(\"solve failed\")\r\n    print(\"SLVS_RESULT_INCONSISTENT\")\r\nelif result == SLVS_RESULT_DIDNT_CONVERGE:\r\n    print(\"solve failed\")\r\n    print(\"SLVS_RESULT_DIDNT_CONVERGE\")\r\nelif result == SLVS_RESULT_TOO_MANY_UNKNOWNS:\r\n    print(\"solve failed\")\r\n    print(\"SLVS_RESULT_TOO_MANY_UNKNOWNS\")\r\n\r\nprint(\"{} DOF\".format(sys.dof))\r\n```\r\n\r\nThis is a triangle with two constrained angles and one constrained length, and should therefore be fully constrained. Instead, I get the error \"SLVS_RESULT_DIDNT_CONVERGE\". In the SolveSpace GUI it is able to solve this as \"OK\".\r\n\r\nInterestingly, setting two distance constraints and one angle constraint seems to work ok.\r\n\r\nDo you have any idea what is wrong?","author":{"url":"https://github.com/SeanDS","@type":"Person","name":"SeanDS"},"datePublished":"2018-09-12T09:24:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/4/python-solvespace/issues/4"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fd89aacc-d00b-08e7-abcc-28e6b20e32ca
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idADC2:31CE76:1AA50AE:24D900E:698CCAFF
html-safe-nonce0363d103bd8ca67daae40d3ff871e50bdb469e768ff58f5bf9910eab0585febe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREMyOjMxQ0U3NjoxQUE1MEFFOjI0RDkwMEU6Njk4Q0NBRkYiLCJ2aXNpdG9yX2lkIjoiNDk2ODA0ODQ4NDc2ODU5ODc4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd65c25896cf54dd8e8401eba8332055cd418527279f139a105c85c6091fb8cc9
hovercard-subject-tagissue:359390476
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/KmolYuan/python-solvespace/4/issue_layout
twitter:imagehttps://opengraph.githubassets.com/679893fad15d5ac821ffda56aae485046e045b884e620f7f7eaf72770d98f8d2/KmolYuan/python-solvespace/issues/4
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/679893fad15d5ac821ffda56aae485046e045b884e620f7f7eaf72770d98f8d2/KmolYuan/python-solvespace/issues/4
og:image:altHi, I'm playing around with python-solvespace and it's great so far - thanks! One problem I found though is that it can't seem to solve the following file: # adapted from https://github.com/KmolYua...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSeanDS
hostnamegithub.com
expected-hostnamegithub.com
None640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4
turbo-cache-controlno-preview
go-importgithub.com/KmolYuan/python-solvespace git https://github.com/KmolYuan/python-solvespace.git
octolytics-dimension-user_id10264720
octolytics-dimension-user_loginKmolYuan
octolytics-dimension-repository_id63935880
octolytics-dimension-repository_nwoKmolYuan/python-solvespace
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id63935880
octolytics-dimension-repository_network_root_nwoKmolYuan/python-solvespace
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3d444f0a47beeeac94cddbb51c91ab408befe8d4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/issues/4#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FKmolYuan%2Fpython-solvespace%2Fissues%2F4
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FKmolYuan%2Fpython-solvespace%2Fissues%2F4
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=KmolYuan%2Fpython-solvespace
Reloadhttps://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/issues/4
Reloadhttps://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/issues/4
Reloadhttps://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/issues/4
KmolYuan https://patch-diff.githubusercontent.com/KmolYuan
python-solvespacehttps://patch-diff.githubusercontent.com/KmolYuan/python-solvespace
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FKmolYuan%2Fpython-solvespace
Fork 5 https://patch-diff.githubusercontent.com/login?return_to=%2FKmolYuan%2Fpython-solvespace
Star 16 https://patch-diff.githubusercontent.com/login?return_to=%2FKmolYuan%2Fpython-solvespace
Code https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace
Issues 3 https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/issues
Pull requests 0 https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/pulls
Actions https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/actions
Projects 0 https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/projects
Wiki https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/wiki
Security 0 https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/security
Insights https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/pulse
Code https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace
Issues https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/issues
Pull requests https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/pulls
Actions https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/actions
Projects https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/projects
Wiki https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/wiki
Security https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/security
Insights https://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/pulse
Triangle can't be solved with two angles and one distance constrainthttps://patch-diff.githubusercontent.com/KmolYuan/python-solvespace/issues/4#top
https://github.com/SeanDS
https://github.com/SeanDS
SeanDShttps://github.com/SeanDS
on Sep 12, 2018https://github.com/KmolYuan/python-solvespace/issues/4#issue-359390476
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.