{"library":"polyscope","title":"Polyscope 3D Viewer","description":"Polyscope is a Python library that provides an interactive 3D viewer and user interface for visualizing a variety of 3D data types, including point clouds, surface meshes, volumes, and general purpose quantities. It is built on a C++ core for performance and offers an intuitive GUI. The current version is 2.6.1, and it maintains a frequent release cadence, typically with minor versions released every 1-2 months.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install polyscope"],"cli":{"name":"polyscope","version":"sh: 1: polyscope: not found"}},"imports":["import polyscope as ps"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import polyscope as ps\nimport numpy as np\n\n# Initialize polyscope\nps.init()\n\n# Register a point cloud\npts = np.random.rand(100, 3)\nps.register_point_cloud(\"my_points\", pts, color=[0.3, 0.5, 0.8])\n\n# Register a surface mesh\nV = np.array([[0,0,0.], [1,0,0.], [0,1,0.], [1,1,0.]])\nF = np.array([[0,1,2], [1,3,2]])\nps.register_surface_mesh(\"my_mesh\", V, F, color=[0.8, 0.5, 0.3])\n\n# Show the gui and keep it open\nps.show()","lang":"python","description":"This quickstart initializes the Polyscope viewer, registers a simple random point cloud and a basic surface mesh with distinct colors, then displays the interactive GUI.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}