{"id":16321123,"url":"https://github.com/reteprelleum/chart3d","last_synced_at":"2025-10-31T18:30:24.174Z","repository":{"id":215171749,"uuid":"461116708","full_name":"RetepRelleum/chart3d","owner":"RetepRelleum","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-19T10:23:04.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-25T19:23:07.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RetepRelleum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-02-19T07:17:43.000Z","updated_at":"2022-02-19T07:17:51.000Z","dependencies_parsed_at":"2024-01-03T00:44:50.468Z","dependency_job_id":"43dc87cb-f45e-4865-ac37-b7d13fd6628e","html_url":"https://github.com/RetepRelleum/chart3d","commit_stats":null,"previous_names":["reteprelleum/chart3d"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RetepRelleum%2Fchart3d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RetepRelleum%2Fchart3d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RetepRelleum%2Fchart3d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RetepRelleum%2Fchart3d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RetepRelleum","download_url":"https://codeload.github.com/RetepRelleum/chart3d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239221174,"owners_count":19602380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T22:46:32.888Z","updated_at":"2025-10-31T18:30:23.926Z","avatar_url":"https://github.com/RetepRelleum.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Chart3d  \n\nPython package to create from a numpy Array a 3d triangle Chart like \nhttps://skfb.ly/osJAz\n\n\n```{python}\nimport chart3d as c3d\nfrom chart3d import EnumColor\n\n_date=datetime.now()-timedelta(366)\npointMatrix = None\n\nfor x in range(366):\n    ay = np.array(_date)\n    for y in range(25):\n        ay=np.append(ay,random()*15+3)\n    if pointMatrix is None:\n        pointMatrix=np.array([ay])\n    else:\n        pointMatrix=np.append(pointMatrix,[ay],axis=0)\n    _date = _date + timedelta(1)\n\npointMatrix2 = np.array([[datetime.now()-timedelta(-2),1, 2, 3, 4, 5, 6, 7, 8, 9],\n                        [datetime.now()-timedelta(-1),5, 5, 5, 5, 5, 5, 5, 5, 5],\n                        [datetime.now()-timedelta(-0),9, 8, 7, 6, 5, 4, 3, 2, 1]])\n\n\nvertices, vcolors, triangles = c3d.matrix_to_vertices_quader(pointMatrix,\n                                                             colx=EnumColor.r2b,\n                                                             xlabel='Stunde',\n                                                             ylabel='Tage',\n                                                             zlabel='kW',\n                                                             ueber='Random Test')\npcd = o3d.geometry.PointCloud()\npcd.points = o3d.utility.Vector3dVector(vertices)\nvertices1, vcolors1, triangles1 = c3d.matrix_to_vertices(pointMatrix2,dxyz=c3d.Point(0,24+10,0))\npcd1 = o3d.geometry.PointCloud()\npcd1.points = o3d.utility.Vector3dVector(vertices1)\no3d.visualization.draw_geometries([pcd,pcd1])\n\nmesh = o3d.geometry.TriangleMesh()\nmesh.vertices = o3d.utility.Vector3dVector(vertices)\nmesh.triangles = o3d.utility.Vector3iVector(triangles)\nmesh.vertex_colors = o3d.utility.Vector3dVector(vcolors)\nmesh.compute_vertex_normals()\n\nmesh1 = o3d.geometry.TriangleMesh()\nmesh1.vertices = o3d.utility.Vector3dVector(vertices1)\nmesh1.triangles = o3d.utility.Vector3iVector(triangles1)\nmesh1.vertex_colors = o3d.utility.Vector3dVector(vcolors1)\nmesh1.compute_vertex_normals()\n\no3d.visualization.draw_geometries([mesh,mesh1], mesh_show_wireframe=False)\n#o3d.io.write_triangle_mesh(\"copy_of_knot_pv00.ply\", mesh)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freteprelleum%2Fchart3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freteprelleum%2Fchart3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freteprelleum%2Fchart3d/lists"}