René's URL Explorer Experiment


Title: Following rays along the way of their multiple intersections · Issue #41 · rnd-team-dev/plotoptix · GitHub

Open Graph Title: Following rays along the way of their multiple intersections · Issue #41 · rnd-team-dev/plotoptix

X Title: Following rays along the way of their multiple intersections · Issue #41 · rnd-team-dev/plotoptix

Description: Good day, I need to follow a ray along its path and acquire information of all its multiple intersections. To this end, I'm considering the following example involving the scattering from a corner reflector: import numpy as np from ploto...

Open Graph Description: Good day, I need to follow a ray along its path and acquire information of all its multiple intersections. To this end, I'm considering the following example involving the scattering from a corner ...

X Description: Good day, I need to follow a ray along its path and acquire information of all its multiple intersections. To this end, I'm considering the following example involving the scattering from a cor...

Opengraph URL: https://github.com/rnd-team-dev/plotoptix/issues/41

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Following rays along the way of their multiple intersections","articleBody":"Good day,\r\nI need to follow a ray along its path and acquire information of all its multiple intersections. To this end, I'm considering the following example involving the scattering from a corner reflector:\r\n\r\n```\r\nimport numpy as np\r\nfrom plotoptix import TkOptiX\r\nfrom plotoptix import NpOptiX\r\nimport matplotlib.pyplot as plt\r\n\r\nnu = 7\r\nnv = 7\r\n    \r\ndef displayResults(rt):\r\n\r\n    print(\"Launch finished.\")\r\n\r\n    hitPositionsData = rt._hit_pos\r\n    xHitPositions = hitPositionsData[:, :, 0]\r\n    yHitPositions = hitPositionsData[:, :, 1]\r\n    zHitPositions = hitPositionsData[:, :, 2]\r\n    dHitPositions = hitPositionsData[:, :, 3]\r\n\r\n    hitTriangle   = rt._geo_id[:, :, 1].reshape(rt._height, rt._width)\r\n\r\n    print(\"Shape of rays array is {}.\".format(xHitPositions.shape))\r\n\r\n    xHitPositions = xHitPositions[hitTriangle \u003c 0xFFFFFFFF]\r\n    yHitPositions = yHitPositions[hitTriangle \u003c 0xFFFFFFFF]\r\n    dHitPositions[np.where(hitTriangle \u003e= 0xFFFFFFFF)] = -1\r\n    hitTriangle[np.where(hitTriangle \u003e= 0xFFFFFFFF)] = 10\r\n\r\n    print(dHitPositions)\r\n    \r\n    print(\"Shape of hitting rays array is {}.\".format(xHitPositions.shape))\r\n\r\n    plt.plot(xHitPositions, yHitPositions, 'bo')\r\n    plt.show()\r\n\r\n    plt.imshow(dHitPositions)\r\n    plt.colorbar()\r\n    plt.show()\r\n\r\n    plt.imshow(hitTriangle)\r\n    plt.colorbar()\r\n    plt.show()\r\n\r\n    plt.draw()\r\n\r\n\r\n#verticesTriangle    = np.array([[-2, -2, 0], [2, -2, 0], [-2, 2, 0], [2,  2, 0]])\r\n#faceTriangle        = np.array([[0, 1, 2], [1, 2, 3]])\r\n#verticesTriangles   = np.array([[-1, -1, 0], [1, -1, 0], [-1, 1, 0], [1, 1, 0], [-1, 1, 2], [1, 1, 2]])\r\n#faceTriangles       = np.array([[0, 1, 2], [1, 2, 3], [2, 3, 4], [3, 4, 5]])\r\nverticesTriangles   = np.array([[0, 1, 0], [0, -1, 0], [0.5 * np.sqrt(2), 1, 0.5 * np.sqrt(2)], [0.5 * np.sqrt(2), -1, 0.5 * np.sqrt(2)], [-0.5 * np.sqrt(2), 1, 0.5 * np.sqrt(2)], [-0.5 * np.sqrt(2), -1, 0.5 * np.sqrt(2)]])\r\nfaceTriangles       = np.array([[0, 1, 2], [1, 2, 3], [0, 1, 4], [1, 4, 5]])\r\n\r\nrt                  = NpOptiX(on_rt_accum_done = displayResults, width = nu, height = nv)\r\n#rt                  = NpOptiX(width = nu, height = nv)\r\n\r\nrt.set_mesh(\"Mesh\", verticesTriangles, faceTriangles)\r\n\r\nu                   = np.linspace(-1.9, 2.1, nu)\r\nv                   = np.linspace(-2, 2, nv)\r\nV, U                = np.meshgrid(v, u)\r\nW                   = np.full((nu, nv), -1)\r\noriginsTexture      = np.stack((U, V, W, np.zeros((nu, nv)))).T\r\n\r\nrt.set_texture_2d(\"origins\", originsTexture)\r\n \r\ncx                  = np.zeros((nu, nv))\r\ncy                  = np.zeros((nu, nv))\r\ncz                  = np.ones((nu, nv))\r\nr                   = np.full((nu, nv), 200)\r\ndirectionsTexture   = np.stack((cx, cy, cz, r)).T\r\n\r\nrt.set_texture_2d(\"directions\", directionsTexture)\r\n \r\nrt.setup_camera(\"custom_cam\", cam_type = \"CustomProjXYZtoDir\", textures = [\"origins\", \"directions\"])\r\n\r\nrt.set_param(max_accumulation_frames = 1)\r\n\r\nrt.set_uint(\"path_seg_range\", 1, 4)\r\n\r\nrt.start()\r\n\r\n#rt.close()\r\n```\r\n\r\nI have the following questions:\r\n\r\n1) I'm setting `path_seg_range` to enable multiple reflections. However, it seems the line does not have an effect. If I comment it out, the results seem to be the same.\r\n2) I access the hit positions and hit distances by the `rt._hit_pos` array. However, for my purposes, I need to know all the hit positions and distances _per ray_. Is that possible by PlotOptiX?","author":{"url":"https://github.com/vitalitylearning2021","@type":"Person","name":"vitalitylearning2021"},"datePublished":"2023-02-08T18:29:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/41/plotoptix/issues/41"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:aeaeb94f-6647-d4f9-112a-a3963c0b8b7e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD49A:147F26:CADC47:118CE0F:6A4BE0F1
html-safe-nonce610c7071bf5cff23e82ee68bce3e6ccc6febc0b02ec7df1a8f09361efa0b1a42
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDlBOjE0N0YyNjpDQURDNDc6MTE4Q0UwRjo2QTRCRTBGMSIsInZpc2l0b3JfaWQiOiIyMzg0ODIxOTY5NDcyNjM3MzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6e59c6825fb20e4f007e4a598ea12e82ada487b82e25716147fc518a7235a006
hovercard-subject-tagissue:1576605594
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/rnd-team-dev/plotoptix/41/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bd8866d2f71818415ab121a85dfc8244912bcc94da3d971d92b2a25a9f2a0753/rnd-team-dev/plotoptix/issues/41
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bd8866d2f71818415ab121a85dfc8244912bcc94da3d971d92b2a25a9f2a0753/rnd-team-dev/plotoptix/issues/41
og:image:altGood day, I need to follow a ray along its path and acquire information of all its multiple intersections. To this end, I'm considering the following example involving the scattering from a corner ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevitalitylearning2021
hostnamegithub.com
expected-hostnamegithub.com
None0f5d3ba365b3985d75c32a5957c8635488d58dcf027ae6ae958eee7edaa306a2
turbo-cache-controlno-preview
go-importgithub.com/rnd-team-dev/plotoptix git https://github.com/rnd-team-dev/plotoptix.git
octolytics-dimension-user_id49209042
octolytics-dimension-user_loginrnd-team-dev
octolytics-dimension-repository_id177851202
octolytics-dimension-repository_nwornd-team-dev/plotoptix
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id177851202
octolytics-dimension-repository_network_root_nwornd-team-dev/plotoptix
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
release253920ac2dc35b0849cca4633895f1f2e5f03051
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/rnd-team-dev/plotoptix/issues/41#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frnd-team-dev%2Fplotoptix%2Fissues%2F41
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frnd-team-dev%2Fplotoptix%2Fissues%2F41
Sign up https://github.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=rnd-team-dev%2Fplotoptix
Reloadhttps://github.com/rnd-team-dev/plotoptix/issues/41
Reloadhttps://github.com/rnd-team-dev/plotoptix/issues/41
Reloadhttps://github.com/rnd-team-dev/plotoptix/issues/41
Please reload this pagehttps://github.com/rnd-team-dev/plotoptix/issues/41
rnd-team-dev https://github.com/rnd-team-dev
plotoptixhttps://github.com/rnd-team-dev/plotoptix
Please reload this pagehttps://github.com/rnd-team-dev/plotoptix/issues/41
Notifications https://github.com/login?return_to=%2Frnd-team-dev%2Fplotoptix
Fork 30 https://github.com/login?return_to=%2Frnd-team-dev%2Fplotoptix
Star 517 https://github.com/login?return_to=%2Frnd-team-dev%2Fplotoptix
Code https://github.com/rnd-team-dev/plotoptix
Issues 8 https://github.com/rnd-team-dev/plotoptix/issues
Pull requests 0 https://github.com/rnd-team-dev/plotoptix/pulls
Actions https://github.com/rnd-team-dev/plotoptix/actions
Security and quality 0 https://github.com/rnd-team-dev/plotoptix/security
Insights https://github.com/rnd-team-dev/plotoptix/pulse
Code https://github.com/rnd-team-dev/plotoptix
Issues https://github.com/rnd-team-dev/plotoptix/issues
Pull requests https://github.com/rnd-team-dev/plotoptix/pulls
Actions https://github.com/rnd-team-dev/plotoptix/actions
Security and quality https://github.com/rnd-team-dev/plotoptix/security
Insights https://github.com/rnd-team-dev/plotoptix/pulse
Following rays along the way of their multiple intersectionshttps://github.com/rnd-team-dev/plotoptix/issues/41#top
https://github.com/vitalitylearning2021
vitalitylearning2021https://github.com/vitalitylearning2021
on Feb 8, 2023https://github.com/rnd-team-dev/plotoptix/issues/41#issue-1576605594
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.