{
  "id": "task_libraries:3d/python",
  "path": "/exapedia/python-3d-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python 3D libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python "
    },
    {
      "t": "fact",
      "fact": "F263"
    },
    {
      "t": "text",
      "text": " libraries load, edit, and render meshes, point clouds, and CAD models. A CAD kernel builds solids from exact curves and surfaces rather than from triangle approximations. These libraries let engineering tools, robotics pipelines, and scientific apps process "
    },
    {
      "t": "fact",
      "fact": "F263"
    },
    {
      "t": "text",
      "text": " geometry in code."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python 3D libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#trimesh",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F141"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#vtk",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F156"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cadquery-ocp",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F169"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#manifoldthreed",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cadquery",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F199"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#open-d",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F216"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyvista",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#bpy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F246"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#trimesh",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F2"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Point-cloud dataset API",
            "OpenCascade CAD solids"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#trimesh",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F141"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#vtk",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F156"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cadquery-ocp",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F169"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#manifoldthreed",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cadquery",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F199"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#open-d",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F216"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyvista",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#bpy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F246"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "trimesh",
          "name": [
            {
              "t": "fact",
              "fact": "F141"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mikedh/trimesh"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/trimesh"
            },
            {
              "label": "Docs",
              "href": "https://trimesh.org/trimesh.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://trimesh.org/trimesh.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F141"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/TRELLIS",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F154"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def to_glb(\n    app_rep: Union[Strivec, Gaussian],\n    mesh: MeshExtractResult,\n    simplify: float = 0.95,\n    fill_holes: bool = True,\n    fill_holes_max_size: float = 0.04,\n    texture_size: int = 1024,\n    debug: bool = False,\n    verbose: bool = True,\n) -> trimesh.Trimesh:\n    \"\"\"\n    Convert a generated asset to a glb file.\n\n    Args:\n        app_rep (Union[Strivec, Gaussian]): Appearance representation.\n        mesh (MeshExtractResult): Extracted mesh.\n        simplify (float): Ratio of faces to remove in simplification.\n        fill_holes (bool): Whether to fill holes in the mesh.\n        fill_holes_max_size (float): Maximum area of a hole to fill.\n        texture_size (int): Size of the texture.\n        debug (bool): Whether to print debug information.\n        verbose (bool): Whether to print progress.\n    \"\"\"\n    vertices = mesh.vertices.cpu().numpy()\n    faces = mesh.faces.cpu().numpy()\n\n    # mesh postprocess\n    vertices, faces = postprocess_mesh(\n        vertices, faces,\n        simplify=simplify > 0,\n        simplify_ratio=simplify,\n        fill_holes=fill_holes,\n        fill_holes_max_hole_size=fill_holes_max_size,\n        fill_holes_max_hole_nbe=int(250 * np.sqrt(1-simplify)),\n        fill_holes_resolution=1024,\n        fill_holes_num_views=1000,\n        debug=debug,\n        verbose=verbose,\n    )\n\n    # parametrize mesh\n    vertices, faces, uvs = parametrize_mesh(vertices, faces)\n\n    # bake texture\n    observations, extrinsics, intrinsics = render_multiview(app_rep, resolution=1024, nviews=100)\n    masks = [np.any(observation > 0, axis=-1) for observation in observations]\n    extrinsics = [extrinsics[i].cpu().numpy() for i in range(len(extrinsics))]\n    intrinsics = [intrinsics[i].cpu().numpy() for i in range(len(intrinsics))]\n    texture = bake_texture(\n        vertices, faces, uvs,\n        observations, masks, extrinsics, intrinsics,\n        texture_size=texture_size, mode='opt',\n        lambda_tv=0.01,\n        verbose=verbose\n    )\n    texture = Image.fromarray(texture)\n\n    # rotate mesh (from z-up to y-up)\n    vertices = vertices @ np.array([[1, 0, 0], [0, 0, -1], [0, 1, 0]])\n    material = trimesh.visual.material.PBRMaterial(\n        roughnessFactor=1.0,\n        baseColorTexture=texture,\n        baseColorFactor=np.array([255, 255, 255, 255], dtype=np.uint8)\n    )\n    mesh = trimesh.Trimesh(vertices, faces, visual=trimesh.visual.TextureVisuals(uv=uvs, material=material))\n    return mesh\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/TRELLIS/blob/193e0502b5cb3eb5997ec457d5340e95d09b158e/trellis/utils/postprocessing_utils.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F153"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20applications%20using%20trimesh%20for%20point%20clouds%2C%20mesh%20processing%20and%20scientific%20visualization&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F141"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import trimesh\n\nmesh = trimesh.creation.box(extents=(1.0, 2.0, 3.0))\nprint(mesh.volume)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://trimesh.org/trimesh.creation.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F146"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "vtk",
          "name": [
            {
              "t": "fact",
              "fact": "F156"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Kitware/VTK"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/vtk"
            },
            {
              "label": "Docs",
              "href": "https://vtk.org/doc/nightly/html/classvtkPolyData.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F163"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://vtk.org/doc/nightly/html/classvtkPolyData.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F156"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from vtkmodules.vtkFiltersSources import vtkSphereSource\n\nsource = vtkSphereSource()\nsource.Update()\nmesh = source.GetOutput()\nprint(mesh.GetNumberOfPoints())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://vtk.org/doc/nightly/html/classvtkSphereSource.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "classvtkSphereSource.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=vtk%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F156"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F161"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "cadquery-ocp",
          "name": [
            {
              "t": "fact",
              "fact": "F169"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/CadQuery/OCP"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/cadquery-ocp"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/CadQuery/OCP/contents/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F176"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/CadQuery/OCP/contents/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F169"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from OCP.BRepPrimAPI import BRepPrimAPI_MakeBox\n\nshape = BRepPrimAPI_MakeBox(1.0, 2.0, 3.0).Shape()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://dev.opencascade.org/doc/refman/html/class_b_rep_prim_a_p_i___make_box.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "class_b_rep_prim_a_p_i___make_box.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=cadquery-ocp%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F169"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F174"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "manifoldthreed",
          "name": [
            {
              "t": "fact",
              "fact": "F182"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/elalish/manifold"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/manifold3d"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F189"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/elalish/manifold",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F182"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mikedh/trimesh",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F197"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def boolean_manifold(\n    meshes: Sequence,\n    operation: BooleanOperationType,\n    check_volume: bool = True,\n    **kwargs,\n):\n    \"\"\"\n    Run an operation on a set of meshes using the Manifold engine.\n\n    Parameters\n    ----------\n    meshes : list of trimesh.Trimesh\n      Meshes to be processed\n    operation\n      Which boolean operation to do.\n    check_volume\n      Raise an error if not all meshes are watertight\n      positive volumes. Advanced users may want to ignore\n      this check as it is expensive.\n    kwargs\n      Passed through to the `engine`.\n    \"\"\"\n    if check_volume and not all(m.is_volume for m in meshes):\n        raise ValueError(\"Not all meshes are volumes!\")\n\n    # Convert to manifold meshes\n    manifolds = [\n        Manifold(\n            mesh=Mesh(\n                vert_properties=np.array(mesh.vertices, dtype=np.float32),\n                tri_verts=np.array(mesh.faces, dtype=np.uint32),\n            )\n        )\n        for mesh in meshes\n    ]\n\n    # Perform operations\n    if operation == \"difference\":\n        if len(meshes) < 2:\n            raise ValueError(\"Difference only defined over two meshes.\")\n        elif len(meshes) == 2:\n            # apply the single difference\n            result_manifold = manifolds[0] - manifolds[1]\n        elif len(meshes) > 2:\n            # union all the meshes to be subtracted from the final result\n            unioned = reduce_cascade(lambda a, b: a + b, manifolds[1:])\n            # apply the difference\n            result_manifold = manifolds[0] - unioned\n    elif operation == \"union\":\n        result_manifold = reduce_cascade(lambda a, b: a + b, manifolds)\n    elif operation == \"intersection\":\n        result_manifold = reduce_cascade(lambda a, b: a ^ b, manifolds)\n    else:\n        raise ValueError(f\"Invalid boolean operation: '{operation}'\")\n\n    # Convert back to trimesh meshes\n    from . import Trimesh\n\n    result_mesh = result_manifold.to_mesh()\n\n    return Trimesh(\n        vertices=result_mesh.vert_properties, faces=result_mesh.tri_verts, process=False\n    )",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mikedh/trimesh/blob/7fe4ac4405ba5af02756c2db729da6822510304c/trimesh/boolean.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=manifold3d%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F182"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from manifold3d import Manifold\n\nsolid = Manifold.cube((1.0, 2.0, 3.0))\nmesh = solid.to_mesh()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/elalish/manifold/contents/bindings/python/manifold3d.cpp?ref=v3.5.5",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F187"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "cadquery",
          "name": [
            {
              "t": "fact",
              "fact": "F199"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/CadQuery/cadquery"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/cadquery"
            },
            {
              "label": "Docs",
              "href": "https://cadquery.readthedocs.io/en/latest/classreference.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F206"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cadquery.readthedocs.io/en/latest/classreference.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F199"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/fusion-energy/paramak",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F214"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def create_wire_workplane_from_points(points, plane, origin=(0, 0, 0), obj=None):\n\n    workplane = Workplane(plane, origin=origin, obj=obj)\n\n    all_straight = all(entry[-1] == \"straight\" for entry in points)\n    all_spline = all(entry[-1] == \"spline\" for entry in points)\n\n    if all_straight:\n        entry_values = [entry[:2] for entry in points[:-1]]\n        result = workplane.polyline(entry_values).close()\n    elif all_spline:\n        entry_values = [entry[:2] for entry in points[:-1]]\n        result = workplane.spline(\n            entry_values, makeWire=True, tol=1e-1, periodic=True\n        )  # periodic smooths out the connecting joint\n    else:\n        instructions = instructions_from_points(points)\n\n        result = create_wire_workplane_from_instructions(\n            instructions=instructions,\n            workplane=workplane,\n        )\n\n    return result",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/fusion-energy/paramak/blob/38e09e1ca15bca97d9612b43816029686b3aa2ce/src/paramak/utils.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=cadquery%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F199"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from cadquery import Workplane\n\npart = Workplane(\"XY\").box(1.0, 2.0, 3.0)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cadquery.readthedocs.io/en/latest/quickstart.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "quickstart.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F204"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "open-d",
          "name": [
            {
              "t": "fact",
              "fact": "F216"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/isl-org/Open3D"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/open3d"
            },
            {
              "label": "Docs",
              "href": "https://www.open3d.org/docs/release/python_api/open3d.geometry.PointCloud.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F38"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.open3d.org/docs/release/python_api/open3d.geometry.PointCloud.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F216"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Pointcept/Pointcept",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def get_point_cloud(coord, color=None, verbose=True):\n    if not isinstance(coord, list):\n        coord = [coord]\n        if color is not None:\n            color = [color]\n\n    pcd_list = []\n    for i in range(len(coord)):\n        coord_ = to_numpy(coord[i])\n        if color is not None:\n            color_ = to_numpy(color[i])\n        pcd = o3d.geometry.PointCloud()\n        pcd.points = o3d.utility.Vector3dVector(coord_)\n        pcd.colors = o3d.utility.Vector3dVector(\n            np.zeros_like(coord_) if color is None else color_\n        )\n        pcd_list.append(pcd)\n    if verbose:\n        o3d.visualization.draw_geometries(pcd_list)\n    return pcd_list\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Pointcept/Pointcept/blob/77f87abe69bf098ebccf3e9b08400963954af6ac/pointcept/utils/visualization.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F228"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20applications%20using%20open3d%20for%20point%20clouds%2C%20mesh%20processing%20and%20scientific%20visualization&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F216"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import numpy as np\nimport open3d as o3d\n\ncloud = o3d.geometry.PointCloud()\ncloud.points = o3d.utility.Vector3dVector(\n    np.array([[0, 0, 0], [1, 0, 0], [0, 1, 0]], dtype=np.float64)\n)\nbounds = cloud.get_axis_aligned_bounding_box()\nprint(bounds)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.open3d.org/docs/release/python_api/open3d.geometry.PointCloud.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "triangle_mesh_simplification_decimation.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F221"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pyvista",
          "name": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pyvista/pyvista"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pyvista"
            },
            {
              "label": "Docs",
              "href": "https://docs.pyvista.org/api/core/_autosummary/pyvista.polydata"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F65"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.pyvista.org/api/core/_autosummary/pyvista.polydata",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F231"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F73"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/TRELLIS",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def postprocess_mesh(\n    vertices: np.array,\n    faces: np.array,\n    simplify: bool = True,\n    simplify_ratio: float = 0.9,\n    fill_holes: bool = True,\n    fill_holes_max_hole_size: float = 0.04,\n    fill_holes_max_hole_nbe: int = 32,\n    fill_holes_resolution: int = 1024,\n    fill_holes_num_views: int = 1000,\n    debug: bool = False,\n    verbose: bool = False,\n):\n    \"\"\"\n    Postprocess a mesh by simplifying, removing invisible faces, and removing isolated pieces.\n\n    Args:\n        vertices (np.array): Vertices of the mesh. Shape (V, 3).\n        faces (np.array): Faces of the mesh. Shape (F, 3).\n        simplify (bool): Whether to simplify the mesh, using quadric edge collapse.\n        simplify_ratio (float): Ratio of faces to keep after simplification.\n        fill_holes (bool): Whether to fill holes in the mesh.\n        fill_holes_max_hole_size (float): Maximum area of a hole to fill.\n        fill_holes_max_hole_nbe (int): Maximum number of boundary edges of a hole to fill.\n        fill_holes_resolution (int): Resolution of the rasterization.\n        fill_holes_num_views (int): Number of views to rasterize the mesh.\n        verbose (bool): Whether to print progress.\n    \"\"\"\n\n    if verbose:\n        tqdm.write(f'Before postprocess: {vertices.shape[0]} vertices, {faces.shape[0]} faces')\n\n    # Simplify\n    if simplify and simplify_ratio > 0:\n        mesh = pv.PolyData(vertices, np.concatenate([np.full((faces.shape[0], 1), 3), faces], axis=1))\n        mesh = mesh.decimate(simplify_ratio, progress_bar=verbose)\n        vertices, faces = mesh.points, mesh.faces.reshape(-1, 4)[:, 1:]\n        if verbose:\n            tqdm.write(f'After decimate: {vertices.shape[0]} vertices, {faces.shape[0]} faces')\n\n    # Remove invisible faces\n    if fill_holes:\n        vertices, faces = torch.tensor(vertices).cuda(), torch.tensor(faces.astype(np.int32)).cuda()\n        vertices, faces = _fill_holes(\n            vertices, faces,\n            max_hole_size=fill_holes_max_hole_size,\n            max_hole_nbe=fill_holes_max_hole_nbe,\n            resolution=fill_holes_resolution,\n            num_views=fill_holes_num_views,\n            debug=debug,\n            verbose=verbose,\n        )\n        vertices, faces = vertices.cpu().numpy(), faces.cpu().numpy()\n        if verbose:\n            tqdm.write(f'After remove invisible faces: {vertices.shape[0]} vertices, {faces.shape[0]} faces')\n\n    return vertices, faces\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/TRELLIS/blob/193e0502b5cb3eb5997ec457d5340e95d09b158e/trellis/utils/postprocessing_utils.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F243"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20applications%20using%20pyvista%20for%20point%20clouds%2C%20mesh%20processing%20and%20scientific%20visualization&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F231"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import pyvista as pv\n\nmesh = pv.Sphere(radius=1.0)\nprint(mesh.n_points)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.pyvista.org/api/utilities/_autosummary/pyvista.Sphere.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "create_tri_surface.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "bpy",
          "name": [
            {
              "t": "fact",
              "fact": "F246"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/blender/blender"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/bpy"
            },
            {
              "label": "Docs",
              "href": "https://docs.blender.org/api/current/info_advanced_blender_as_bpy.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F253"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.blender.org/api/current/info_advanced_blender_as_bpy.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F246"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/DLR-RM/BlenderProc",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F261"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def create_from_blender_mesh(blender_mesh: bpy.types.Mesh, object_name: str = None) -> MeshObject:\n    \"\"\" Creates a new Mesh object using the given blender mesh.\n\n    :param blender_mesh: The blender mesh.\n    :param object_name: The name of the new object. If None is given, the name of the given mesh is used.\n    :return: The new Mesh object.\n    \"\"\"\n    # link this mesh inside of a new object\n    obj = bpy.data.objects.new(blender_mesh.name if object_name is None else object_name, blender_mesh)\n    # link the object in the collection\n    bpy.context.collection.objects.link(obj)\n    return MeshObject(obj)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/DLR-RM/BlenderProc/blob/76bd8b82ee19489843578ff045298642197bf883/blenderproc/python/types/MeshObjectUtility.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F260"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=bpy%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F246"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import bpy\n\nbpy.ops.mesh.primitive_cube_add(size=1.0, location=(0.0, 0.0, 0.0))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.blender.org/api/current/bpy.ops.mesh.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "bpy.ops.mesh.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F251"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python 3D library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#trimesh",
          "label": [
            {
              "t": "text",
              "text": "Trimesh"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits loading and analyzing triangle meshes. "
        },
        {
          "t": "link",
          "href": "#open-d",
          "label": [
            {
              "t": "fact",
              "fact": "F216"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits point clouds and surface reconstruction. "
        },
        {
          "t": "link",
          "href": "#cadquery",
          "label": [
            {
              "t": "text",
              "text": "CadQuery"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits parametric CAD models built in code."
        }
      ]
    },
    {
      "q": "What is CadQuery?",
      "a": [
        {
          "t": "link",
          "href": "#cadquery",
          "label": [
            {
              "t": "text",
              "text": "CadQuery"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a parametric scripting language for creating and traversing CAD models in Python. It builds on the Open CASCADE geometry kernel through "
        },
        {
          "t": "link",
          "href": "#cadquery-ocp",
          "label": [
            {
              "t": "text",
              "text": "cadquery-ocp"
            }
          ]
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "q": "What is Open3D?",
      "a": [
        {
          "t": "link",
          "href": "#open-d",
          "label": [
            {
              "t": "fact",
              "fact": "F216"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a library for point clouds, meshes, and surface reconstruction. It includes geometry algorithms and an interactive visualizer."
        }
      ]
    },
    {
      "q": "What is bpy?",
      "a": [
        {
          "t": "link",
          "href": "#bpy",
          "label": [
            {
              "t": "text",
              "text": "bpy"
            }
          ]
        },
        {
          "t": "text",
          "text": " is Blender packaged as a Python module. Scripts can build scenes, edit meshes, and render without opening the Blender interface."
        }
      ]
    },
    {
      "q": "What is PyVista?",
      "a": [
        {
          "t": "link",
          "href": "#pyvista",
          "label": [
            {
              "t": "text",
              "text": "PyVista"
            }
          ]
        },
        {
          "t": "text",
          "text": " wraps VTK with dataset structures, mesh filters, and plotting for points, surfaces, and volumes."
        }
      ]
    },
    {
      "q": "What is Trimesh?",
      "a": [
        {
          "t": "link",
          "href": "#trimesh",
          "label": [
            {
              "t": "text",
              "text": "Trimesh"
            }
          ]
        },
        {
          "t": "text",
          "text": " loads and analyzes triangle meshes, with an emphasis on watertight surfaces. It computes properties such as volume and checks meshes for intersections."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, trimesh",
      "display": "Trimesh",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, trimesh",
      "display": "14.0M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, trimesh",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, trimesh",
      "display": "5.2.1, Nov 2026",
      "asOf": "2026-11-12"
    },
    "F5": {
      "label": "Package release date, trimesh",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F6": {
      "label": "Repository stars, trimesh",
      "display": "3.7K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Reads triangle meshes, trimesh",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Simplifies triangle meshes, trimesh",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Interactive rendering, trimesh",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Output formats, trimesh",
      "display": "PNG",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, trimesh",
      "display": "pip install trimesh",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, trimesh",
      "display": "Loads and analyzes triangle meshes, with an emphasis on watertight surfaces.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, trimesh",
      "display": "Computes properties of closed meshes",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, trimesh",
      "display": "Compute mass properties for closed meshes with a uniform density.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, trimesh",
      "display": "Preserves instances when loading scenes",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, trimesh",
      "display": "Use load_scene when meshes or repeated instances must stay separate.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, trimesh",
      "display": "Simplification needs fast-simplification",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, trimesh",
      "display": "Install fast-simplification before using simplify_quadric_decimation.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, trimesh",
      "display": "Mass properties need closed meshes",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, trimesh",
      "display": "Treat volume and mass properties as unreliable for open triangle surfaces.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, trimesh",
      "display": "import numpy as np\nimport trimesh\n\n# attach to logger so trimesh messages will be printed to console\ntrimesh.util.attach_to_log()\n\n# mesh objects can be created from existing faces and vertex data\nmesh = trimesh.Trimesh(vertices=[[0, 0, 0], [0, 0, 1], [0, 1, 0]], faces=[[0, 1, 2]])\n\n# by default, Trimesh will do a light processing, which will\n# remove any NaN values and merge vertices that share position\n# if you want to not do this on load, you can pass `process=False`\nmesh = trimesh.Trimesh(\n    vertices=[[0, 0, 0], [0, 0, 1], [0, 1, 0]], faces=[[0, 1, 2]], process=False\n)\n\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, trimesh",
      "display": "def to_glb(\n    app_rep: Union[Strivec, Gaussian],\n    mesh: MeshExtractResult,\n    simplify: float = 0.95,\n    fill_holes: bool = True,\n    fill_holes_max_size: float = 0.04,\n    texture_size: int = 1024,\n    debug: bool = False,\n    verbose: bool = True,\n) -> trimesh.Trimesh:\n    # ...\n    vertices = mesh.vertices.cpu().numpy()\n    faces = mesh.faces.cpu().numpy()\n\n    # mesh postprocess\n    vertices, faces = postprocess_mesh(\n        vertices, faces,\n        simplify=simplify > 0,\n        simplify_ratio=simplify,\n        fill_holes=fill_holes,\n        fill_holes_max_hole_size=fill_holes_max_size,\n        fill_holes_max_hole_nbe=int(250 * np.sqrt(1-simplify)),\n        fill_holes_resolution=1024,\n        fill_holes_num_views=1000,\n        debug=debug,\n        verbose=verbose,\n    )\n\n    # parametrize mesh\n    vertices, faces, uvs = parametrize_mesh(vertices, faces)\n\n    # bake texture\n    observations, extrinsics, intrinsics = render_multiview(app_rep, resolution=1024, nviews=100)\n    masks = [np.any(observation > 0, axis=-1) for observation in observations]\n    extrinsics = [extrinsics[i].cpu().numpy() for i in range(len(extrinsics))]\n    intrinsics = [intrinsics[i].cpu().numpy() for i in range(len(intrinsics))]\n    texture = bake_texture(\n        vertices, faces, uvs,\n        observations, masks, extrinsics, intrinsics,\n        texture_size=texture_size, mode='opt',\n        lambda_tv=0.01,\n        verbose=verbose\n    )\n    texture = Image.fromarray(texture)\n\n    # rotate mesh (from z-up to y-up)\n    vertices = vertices @ np.array([[1, 0, 0], [0, 0, -1], [0, 1, 0]])\n    material = trimesh.visual.material.PBRMaterial(\n        roughnessFactor=1.0,\n        baseColorTexture=texture,\n        baseColorFactor=np.array([255, 255, 255, 255], dtype=np.uint8)\n    )\n    mesh = trimesh.Trimesh(vertices, faces, visual=trimesh.visual.TextureVisuals(uv=uvs, material=material))\n    return mesh\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, trimesh",
      "display": "postprocessing_utils.py · to_glb()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, trimesh",
      "display": "microsoft/TRELLIS",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, microsoft/TRELLIS",
      "display": "14.3K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, microsoft/TRELLIS",
      "display": "Oct 2026",
      "asOf": "2026-10-27"
    },
    "F27": {
      "label": "Library name, open3d",
      "display": "Open3D",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, open3d",
      "display": "2.2M",
      "asOf": "2026-11-16"
    },
    "F29": {
      "label": "License, open3d",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, open3d",
      "display": "0.20.0, Sep 2026",
      "asOf": "2026-09-16"
    },
    "F31": {
      "label": "Package release date, open3d",
      "display": "Sep 2026",
      "asOf": "2026-09-16"
    },
    "F32": {
      "label": "Repository stars, open3d",
      "display": "14.2K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Reads triangle meshes, open3d",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Simplifies triangle meshes, open3d",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Interactive rendering, open3d",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Output formats, open3d",
      "display": "PNG",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Install, open3d",
      "display": "pip install open3d",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "What it does, open3d",
      "display": "Provides Python geometry structures and algorithms for point clouds, meshes, reconstruction, and visualization.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, open3d",
      "display": "Builds surfaces from point clouds",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, open3d",
      "display": "Reconstruct triangle meshes with ball pivoting or Poisson methods.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, open3d",
      "display": "Combines geometry and interactive views",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, open3d",
      "display": "Inspect geometry with mouse-controlled rotation, translation, and scaling.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, open3d",
      "display": "Poisson reconstruction needs point normals",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, open3d",
      "display": "Supply point normals before running Poisson surface reconstruction.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, open3d",
      "display": "Poisson reconstruction can extrapolate",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, open3d",
      "display": "Remove low-density regions when reconstruction adds surfaces beyond observed points.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Quickstart, open3d",
      "display": "# ----------------------------------------------------------------------------\n# -                        Open3D: www.open3d.org                            -\n# ----------------------------------------------------------------------------\n# Copyright (c) 2018-2026 www.open3d.org\n# SPDX-License-Identifier: MIT\n# ----------------------------------------------------------------------------\n\nimport open3d as o3d\n\nif __name__ == \"__main__\":\n    bunny = o3d.data.BunnyMesh()\n    mesh_in = o3d.io.read_triangle_mesh(bunny.path)\n    mesh_in.compute_vertex_normals()\n\n    print(\"Before Simplification: \", mesh_in)\n    o3d.visualization.draw_geometries([mesh_in])\n\n    mesh_smp = mesh_in.simplify_quadric_decimation(\n        target_number_of_triangles=6500)\n    print(\"After Simplification target number of triangles = 6500:\\n\", mesh_smp)\n    o3d.visualization.draw_geometries([mesh_smp])\n\n    mesh_smp = mesh_in.simplify_quadric_decimation(\n        target_number_of_triangles=1700)\n    print(\"After Simplification target number of triangles = 1700:\\n\", mesh_smp)\n    o3d.visualization.draw_geometries([mesh_smp])\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function, open3d",
      "display": "def get_point_cloud(coord, color=None, verbose=True):\n    if not isinstance(coord, list):\n        coord = [coord]\n        if color is not None:\n            color = [color]\n\n    pcd_list = []\n    for i in range(len(coord)):\n        coord_ = to_numpy(coord[i])\n        if color is not None:\n            color_ = to_numpy(color[i])\n        pcd = o3d.geometry.PointCloud()\n        pcd.points = o3d.utility.Vector3dVector(coord_)\n        pcd.colors = o3d.utility.Vector3dVector(\n            np.zeros_like(coord_) if color is None else color_\n        )\n        pcd_list.append(pcd)\n    if verbose:\n        o3d.visualization.draw_geometries(pcd_list)\n    return pcd_list\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function reference, open3d",
      "display": "visualization.py · get_point_cloud()",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project repository, open3d",
      "display": "Pointcept/Pointcept",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project stars, Pointcept/Pointcept",
      "display": "3.3K",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project push date, Pointcept/Pointcept",
      "display": "Nov 2026",
      "asOf": "2026-11-03"
    },
    "F53": {
      "label": "Library name, pyvista",
      "display": "PyVista",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Monthly downloads, pyvista",
      "display": "2.1M",
      "asOf": "2026-11-16"
    },
    "F55": {
      "label": "License, pyvista",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Package release, pyvista",
      "display": "0.49.2, Oct 2026",
      "asOf": "2026-10-28"
    },
    "F57": {
      "label": "Package release date, pyvista",
      "display": "Oct 2026",
      "asOf": "2026-10-28"
    },
    "F58": {
      "label": "Repository stars, pyvista",
      "display": "3.9K",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Reads triangle meshes, pyvista",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Simplifies triangle meshes, pyvista",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Volume rendering, pyvista",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Interactive rendering, pyvista",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Output formats, pyvista",
      "display": "PNG",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "Install, pyvista",
      "display": "pip install pyvista",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "What it does, pyvista",
      "display": "Provides dataset structures, mesh filters, and plotting for points, surfaces, and volumes.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths lead, pyvista",
      "display": "Renders volume datasets",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths, pyvista",
      "display": "Render image grids and unstructured volume data with add_volume.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths lead, pyvista",
      "display": "Reduces triangle counts",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "strengths, pyvista",
      "display": "Use decimate to reduce a triangular mesh’s face count.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations lead, pyvista",
      "display": "Decimation targets triangular surfaces",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations, pyvista",
      "display": "Triangulate polygonal surfaces before calling decimate.",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations lead, pyvista",
      "display": "Decimation needs attribute settings",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "limitations, pyvista",
      "display": "Set enable_all_attribute_error when simplification must account for data arrays.",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Quickstart, pyvista",
      "display": "import numpy as np\n\n# sphinx_gallery_thumbnail_number = 2\nimport pyvista as pv\n\n# Seed random numbers for reproducibility\nrng = np.random.default_rng(seed=0)\n\n# %%\n# Simple Triangulations\n# +++++++++++++++++++++\n#\n# First, create some points for the surface.\n\n# Define a simple Gaussian surface\nn = 20\nx = np.linspace(-200, 200, num=n) + rng.uniform(-5, 5, size=n)\ny = np.linspace(-200, 200, num=n) + rng.uniform(-5, 5, size=n)\nxx, yy = np.meshgrid(x, y)\nA, b = 100, 100\nzz = A * np.exp(-0.5 * ((xx / b) ** 2.0 + (yy / b) ** 2.0))\n\n# Get the points as a 2D NumPy array (N by 3)\npoints = np.c_[xx.reshape(-1), yy.reshape(-1), zz.reshape(-1)]\npoints[0:5, :]\n\n# %%\n# Now use those points to create a point cloud PyVista data object. This will\n# be encompassed in a :class:`pyvista.PolyData` object.\n\n# simply pass the numpy points to the PolyData constructor\ncloud = pv.PolyData(points)\ncloud.plot(point_size=15)\n\n# %%\n# Now that we have a PyVista data structure of the points, we can perform a\n# triangulation to turn those boring discrete points into a connected surface.\n\nsurf = cloud.delaunay_2d()\nsurf.plot(show_edges=True)\n\n\n",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project function, pyvista",
      "display": "def postprocess_mesh(\n    vertices: np.array,\n    faces: np.array,\n    simplify: bool = True,\n    simplify_ratio: float = 0.9,\n    fill_holes: bool = True,\n    fill_holes_max_hole_size: float = 0.04,\n    fill_holes_max_hole_nbe: int = 32,\n    fill_holes_resolution: int = 1024,\n    fill_holes_num_views: int = 1000,\n    debug: bool = False,\n    verbose: bool = False,\n):\n    # ...\n\n    if verbose:\n        tqdm.write(f'Before postprocess: {vertices.shape[0]} vertices, {faces.shape[0]} faces')\n\n    # Simplify\n    if simplify and simplify_ratio > 0:\n        mesh = pv.PolyData(vertices, np.concatenate([np.full((faces.shape[0], 1), 3), faces], axis=1))\n        mesh = mesh.decimate(simplify_ratio, progress_bar=verbose)\n        vertices, faces = mesh.points, mesh.faces.reshape(-1, 4)[:, 1:]\n        if verbose:\n            tqdm.write(f'After decimate: {vertices.shape[0]} vertices, {faces.shape[0]} faces')\n\n    # Remove invisible faces\n    if fill_holes:\n        vertices, faces = torch.tensor(vertices).cuda(), torch.tensor(faces.astype(np.int32)).cuda()\n        vertices, faces = _fill_holes(\n            vertices, faces,\n            max_hole_size=fill_holes_max_hole_size,\n            max_hole_nbe=fill_holes_max_hole_nbe,\n            resolution=fill_holes_resolution,\n            num_views=fill_holes_num_views,\n            debug=debug,\n            verbose=verbose,\n        )\n        vertices, faces = vertices.cpu().numpy(), faces.cpu().numpy()\n        if verbose:\n            tqdm.write(f'After remove invisible faces: {vertices.shape[0]} vertices, {faces.shape[0]} faces')\n\n    return vertices, faces\n",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project function reference, pyvista",
      "display": "postprocessing_utils.py · postprocess_mesh()",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project repository, pyvista",
      "display": "microsoft/TRELLIS",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project stars, microsoft/TRELLIS",
      "display": "14.3K",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Project push date, microsoft/TRELLIS",
      "display": "Oct 2026",
      "asOf": "2026-10-27"
    },
    "F80": {
      "label": "Library name, vedo",
      "display": "vedo",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Monthly downloads, vedo",
      "display": "47.7K",
      "asOf": "2026-11-16"
    },
    "F82": {
      "label": "License, vedo",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Package release, vedo",
      "display": "2026.6.3, Oct 2026",
      "asOf": "2026-10-25"
    },
    "F84": {
      "label": "Package release date, vedo",
      "display": "Oct 2026",
      "asOf": "2026-10-25"
    },
    "F85": {
      "label": "Repository stars, vedo",
      "display": "2.3K",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Reads triangle meshes, vedo",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Simplifies triangle meshes, vedo",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Volume rendering, vedo",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Interactive rendering, vedo",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Output formats, vedo",
      "display": "PNG",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Install, vedo",
      "display": "pip install vedo",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "What it does, vedo",
      "display": "Provides tools for scientific visualization and analysis of geometry and point clouds.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths lead, vedo",
      "display": "Renders volumetric data",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "strengths, vedo",
      "display": "Display volume datasets with slicing or ray casting.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "strengths lead, vedo",
      "display": "Preserves point data during decimation",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "strengths, vedo",
      "display": "Reduce mesh vertices while retaining their point-data arrays.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations lead, vedo",
      "display": "Decimation updates the original mesh",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "limitations, vedo",
      "display": "Clone the mesh before simplifying when the original must remain available.",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Quickstart, vedo",
      "display": "from vedo import Sphere, show\n\nsphere = Sphere().c(\"tomato\")\nshow(sphere, axes=1).close()\n",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Project function, vedo",
      "display": "def render(\n    self,\n    interactive: bool | None = None,\n    camera: str | dict | None = None,\n    zoom: float | None = None,\n    resetcam: bool = False,\n    **kwargs: Any,\n) -> None:\n    \"\"\"\n    Render the scene.\n\n    Parameters\n    ----------\n    interactive\n        If None, falls back to ``settings.INTERACTIVE``. When True,\n        execution pauses so the user can interact with the scene.\n    camera\n        Camera name or parameter dict. Falls back to\n        ``settings.DEFAULT_CAMERA`` if None.\n    zoom\n        Camera zoom level. Falls back to the atlas default if None.\n    resetcam\n        Reset the camera between renders.\n    **kwargs\n        Additional arguments forwarded to ``self.plotter.show``.\n    \"\"\"\n    logger.debug(\n        f\"Rendering scene. Interactive: {interactive}, camera: {camera}, zoom: {zoom}\"\n    )\n    # get zoom\n    zoom = zoom or self.atlas.zoom\n\n    # get vedo plotter\n    if self.plotter is None:\n        self._get_plotter()\n\n    # Get camera\n    camera = camera or settings.DEFAULT_CAMERA\n    if isinstance(camera, str):\n        camera = get_camera(camera)\n    else:\n        camera = check_camera_param(camera)\n\n    if \"focal_point\" not in camera.keys() or camera[\"focal_point\"] is None:\n        camera[\"focal_point\"] = self.root._mesh.center_of_mass()\n\n    if not self.backend and camera is not None:\n        _ = set_camera(self, camera)\n\n    # Apply axes correction\n    for actor in self.clean_actors:\n        if not actor._is_transformed:\n            self._prepare_actor(actor)\n            self.plotter.add(actor.mesh)\n\n        if actor._needs_silhouette or actor._needs_label:\n            self._prepare_actor(actor)\n\n    # add labels to the scene\n    for label in self.labels:\n        if label._is_added:\n            continue\n        else:\n            label._mesh = label.mesh.clone()\n            self._prepare_actor(label)\n            self.plotter.add(label._mesh.reverse())\n            label._is_added = True\n\n    # Apply style\n    self._apply_style()\n\n    if self.inset and not self.is_rendered:\n        self._get_inset()\n\n    # render\n    self.is_rendered = True\n    if not self.backend:  # not running in a python script\n        if interactive is None:\n            interactive = settings.INTERACTIVE\n\n        self.plotter.show(\n            interactive=interactive,\n            zoom=zoom,\n            bg=settings.BACKGROUND_COLOR,\n            rate=40,\n            axes=self.plotter.axes,\n            resetcam=resetcam,\n        )\n    elif self.backend == \"k3d\":  # pragma: no cover\n        # Remove silhouettes\n        self.remove(*self.get_actors(br_class=\"silhouette\"))\n        print(\n            f\"[{teal}]Your scene is ready for rendering, use:\\n\",\n            Syntax(\"from vedo import Plotter\", lexer=\"python\"),\n            Syntax(\"plt = Plotter()\", lexer=\"python\"),\n            Syntax(\"plt.show(*scene.renderables)\", lexer=\"python\"),\n            sep=\"\\n\",\n        )\n    else:  # pragma: no cover\n        print(\n            f\"[{teal}]Your scene is ready for rendering, use:\\n\",\n            Syntax(\"from itkwidgets import view\", lexer=\"python\"),\n            Syntax(\n                \"view(scene.plotter.show(*scene.renderables))\",\n                lexer=\"python\",\n            ),\n            sep=\"\\n\",\n        )\n",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Project function reference, vedo",
      "display": "render.py · render()",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Project repository, vedo",
      "display": "brainglobe/brainrender",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Project stars, brainglobe/brainrender",
      "display": "684",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Project push date, brainglobe/brainrender",
      "display": "Nov 2026",
      "asOf": "2026-11-13"
    },
    "F105": {
      "label": "Developer need",
      "display": "Surfaces from point clouds",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Why choose open3d",
      "display": "ball-pivoting and Poisson reconstruction",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need in introduction",
      "display": "surfaces from point clouds",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "When to consider trimesh",
      "display": "watertight triangle-mesh analysis is the main task",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need",
      "display": "Watertight mesh analysis",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Why choose trimesh",
      "display": "mass properties for closed triangle meshes",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need in introduction",
      "display": "watertight mesh analysis",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "When to consider open3d",
      "display": "surfaces must be reconstructed from point clouds",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Developer need",
      "display": "Volume datasets and mesh filters",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Why choose pyvista",
      "display": "image grids and unstructured volume rendering",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Developer need in introduction",
      "display": "volume datasets and mesh filters",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "When to consider vedo",
      "display": "a decimation workflow needs retained point-data arrays",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "Developer need",
      "display": "Point-data-preserving mesh reduction",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "Why choose vedo",
      "display": "mesh decimation with retained point-data arrays",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "Developer need in introduction",
      "display": "point-data-preserving mesh reduction",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "When to consider pyvista",
      "display": "image-grid and unstructured volume rendering fit the workflow",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "Page introduction",
      "display": "Python 3D libraries let application developers build and render 3D scenes.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Which Python geometry library should I choose?",
      "display": "Open3D reconstructs surfaces from point clouds.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Which Python geometry library should I choose?",
      "display": "Trimesh focuses on loading and using triangle meshes, especially watertight surfaces.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Which Python geometry library should I choose?",
      "display": "PyVista provides dataset structures and filters for points, surfaces and volumes.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Which Python geometry library should I choose?",
      "display": "vedo supports volume slicing and ray casting.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: What does Open3D surface reconstruction need?",
      "display": "Poisson surface reconstruction assumes the input point cloud has normals.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Why can Open3D Poisson reconstruction add unwanted surfaces?",
      "display": "Poisson reconstruction can create triangles in low-density areas and extrapolate beyond observed data.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Why can Open3D Poisson reconstruction add unwanted surfaces?",
      "display": "The returned per-vertex densities identify regions supported by fewer input points.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Does Trimesh need an extra simplification package?",
      "display": "simplify_quadric_decimation wraps the optional fast-simplification package.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Can Trimesh calculate useful mass properties for an open surface?",
      "display": "Mass properties assume uniform density and are unreliable when the mesh is not watertight.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: How should Trimesh preserve repeated mesh instances?",
      "display": "Use load_scene; load_mesh concatenates the scene irreversibly.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: What does the Trimesh interactive viewer require?",
      "display": "Its OpenGL debug viewer requires the optional compatible pyglet dependency.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Does PyVista decimate take a fraction to remove or retain?",
      "display": "target_reduction is the fraction of the original mesh to remove.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "FAQ: Can PyVista triangulate polygonal surfaces first?",
      "display": "triangulate returns an all-triangle mesh and breaks complex polygons into triangles.",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "FAQ: How does PyVista account for attributes during decimation?",
      "display": "Enable the attribute-error options explicitly when the reduction should account for mesh data arrays.",
      "asOf": "2026-11-17"
    },
    "F136": {
      "label": "FAQ: Does vedo decimation retain point data?",
      "display": "Its decimate filter preserves the input point-data arrays.",
      "asOf": "2026-11-17"
    },
    "F137": {
      "label": "FAQ: Which compared tools can create PNG images?",
      "display": "Open3D can capture the rendering window into a PNG file.",
      "asOf": "2026-11-17"
    },
    "F138": {
      "label": "FAQ: Which compared tools can create PNG images?",
      "display": "Trimesh scene.save_image returns PNG bytes.",
      "asOf": "2026-11-17"
    },
    "F139": {
      "label": "FAQ: Which compared tools can create PNG images?",
      "display": "PyVista screenshot can write a PNG file.",
      "asOf": "2026-11-17"
    },
    "F140": {
      "label": "FAQ: Which compared tools can create PNG images?",
      "display": "vedo show accepts a PNG screenshot filename.",
      "asOf": "2026-11-17"
    },
    "F141": {
      "label": "Library name, trimesh",
      "display": "Trimesh",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Monthly downloads, trimesh",
      "display": "14.5M",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "License, trimesh",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Package release, trimesh",
      "display": "5.2.1",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Package release date, trimesh",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Install, trimesh",
      "display": "python3.13 -m pip install trimesh==5.2.1",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Quickstart, trimesh",
      "display": "import trimesh\n\nmesh = trimesh.creation.box(extents=(1.0, 2.0, 3.0))\nprint(mesh.volume)\n",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Repository stars, trimesh",
      "display": "3.7K",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Point-cloud dataset API, trimesh",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "OpenCascade CAD solids, trimesh",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Native geometry interface, trimesh",
      "display": "Triangle-mesh analysis, transforms, scene/texture data, and exchange; optional geometry engines/viewer dependencies must not be mistaken for independent adoption.",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Project function, trimesh",
      "display": "def to_glb(\n    app_rep: Union[Strivec, Gaussian],\n    mesh: MeshExtractResult,\n    simplify: float = 0.95,\n    fill_holes: bool = True,\n    fill_holes_max_size: float = 0.04,\n    texture_size: int = 1024,\n    debug: bool = False,\n    verbose: bool = True,\n) -> trimesh.Trimesh:\n    \"\"\"\n    Convert a generated asset to a glb file.\n\n    Args:\n        app_rep (Union[Strivec, Gaussian]): Appearance representation.\n        mesh (MeshExtractResult): Extracted mesh.\n        simplify (float): Ratio of faces to remove in simplification.\n        fill_holes (bool): Whether to fill holes in the mesh.\n        fill_holes_max_size (float): Maximum area of a hole to fill.\n        texture_size (int): Size of the texture.\n        debug (bool): Whether to print debug information.\n        verbose (bool): Whether to print progress.\n    \"\"\"\n    vertices = mesh.vertices.cpu().numpy()\n    faces = mesh.faces.cpu().numpy()\n\n    # mesh postprocess\n    vertices, faces = postprocess_mesh(\n        vertices, faces,\n        simplify=simplify > 0,\n        simplify_ratio=simplify,\n        fill_holes=fill_holes,\n        fill_holes_max_hole_size=fill_holes_max_size,\n        fill_holes_max_hole_nbe=int(250 * np.sqrt(1-simplify)),\n        fill_holes_resolution=1024,\n        fill_holes_num_views=1000,\n        debug=debug,\n        verbose=verbose,\n    )\n\n    # parametrize mesh\n    vertices, faces, uvs = parametrize_mesh(vertices, faces)\n\n    # bake texture\n    observations, extrinsics, intrinsics = render_multiview(app_rep, resolution=1024, nviews=100)\n    masks = [np.any(observation > 0, axis=-1) for observation in observations]\n    extrinsics = [extrinsics[i].cpu().numpy() for i in range(len(extrinsics))]\n    intrinsics = [intrinsics[i].cpu().numpy() for i in range(len(intrinsics))]\n    texture = bake_texture(\n        vertices, faces, uvs,\n        observations, masks, extrinsics, intrinsics,\n        texture_size=texture_size, mode='opt',\n        lambda_tv=0.01,\n        verbose=verbose\n    )\n    texture = Image.fromarray(texture)\n\n    # rotate mesh (from z-up to y-up)\n    vertices = vertices @ np.array([[1, 0, 0], [0, 0, -1], [0, 1, 0]])\n    material = trimesh.visual.material.PBRMaterial(\n        roughnessFactor=1.0,\n        baseColorTexture=texture,\n        baseColorFactor=np.array([255, 255, 255, 255], dtype=np.uint8)\n    )\n    mesh = trimesh.Trimesh(vertices, faces, visual=trimesh.visual.TextureVisuals(uv=uvs, material=material))\n    return mesh\n",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Project source file, trimesh",
      "display": "trellis/utils/postprocessing_utils.py",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Project full_name, trimesh",
      "display": "microsoft/TRELLIS",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Project stargazers_count, trimesh",
      "display": "14.3K",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Library name, vtk",
      "display": "VTK",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Monthly downloads, vtk",
      "display": "6.1M",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "License, vtk",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Package release, vtk",
      "display": "9.7.2",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Package release date, vtk",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Install, vtk",
      "display": "python3.13 -m pip install vtk==9.7.2",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Quickstart, vtk",
      "display": "from vtkmodules.vtkFiltersSources import vtkSphereSource\n\nsource = vtkSphereSource()\nsource.Update()\nmesh = source.GetOutput()\nprint(mesh.GetNumberOfPoints())\n",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Official description, vtk",
      "display": "Provides an open-source toolkit for 3D graphics, image processing, and visualization.",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Quickstart source file, vtk",
      "display": "classvtkSphereSource.html",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Repository stars, vtk",
      "display": "3.2K",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Point-cloud dataset API, vtk",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "OpenCascade CAD solids, vtk",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Native geometry interface, vtk",
      "display": "Low-level scientific data/filter/rendering toolkit with point sets, polydata, and structured/unstructured volume datasets.",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Library name, cadquery-ocp",
      "display": "cadquery-ocp",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Monthly downloads, cadquery-ocp",
      "display": "4.2M",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "License, cadquery-ocp",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Package release, cadquery-ocp",
      "display": "8.0.1.1.0",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Package release date, cadquery-ocp",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Install, cadquery-ocp",
      "display": "python3.13 -m pip install cadquery-ocp==8.0.1.1.0",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Quickstart, cadquery-ocp",
      "display": "from OCP.BRepPrimAPI import BRepPrimAPI_MakeBox\n\nshape = BRepPrimAPI_MakeBox(1.0, 2.0, 3.0).Shape()\n",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Official description, cadquery-ocp",
      "display": "Wraps the Open CASCADE 3D geometry library for Python.",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Quickstart source file, cadquery-ocp",
      "display": "BRepPrimAPI_MakeBox API reference",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Repository stars, cadquery-ocp",
      "display": "216",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Point-cloud dataset API, cadquery-ocp",
      "display": "Undocumented",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "OpenCascade CAD solids, cadquery-ocp",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Native geometry interface, cadquery-ocp",
      "display": "Direct low-level OpenCascade B-rep topology/geometry bindings; Python module OCP is distributed as cadquery-ocp.",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Library name, manifold3d",
      "display": "Manifold",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Monthly downloads, manifold3d",
      "display": "4.0M",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "License, manifold3d",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Package release, manifold3d",
      "display": "3.5.5",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Package release date, manifold3d",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Install, manifold3d",
      "display": "python3.13 -m pip install manifold3d==3.5.5",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Quickstart, manifold3d",
      "display": "from manifold3d import Manifold\n\nsolid = Manifold.cube((1.0, 2.0, 3.0))\nmesh = solid.to_mesh()\n",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Official description, manifold3d",
      "display": "Keeps mesh operations geometrically valid.",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Quickstart source file, manifold3d",
      "display": "bindings/python/manifold3d.cpp",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Repository stars, manifold3d",
      "display": "2.4K",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Point-cloud dataset API, manifold3d",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "OpenCascade CAD solids, manifold3d",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Native geometry interface, manifold3d",
      "display": "Triangle-mesh solid modeling/CSG kernel with explicit watertight manifold representation and float32/64 mesh interchange.",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Project function, manifold3d",
      "display": "def boolean_manifold(\n    meshes: Sequence,\n    operation: BooleanOperationType,\n    check_volume: bool = True,\n    **kwargs,\n):\n    \"\"\"\n    Run an operation on a set of meshes using the Manifold engine.\n\n    Parameters\n    ----------\n    meshes : list of trimesh.Trimesh\n      Meshes to be processed\n    operation\n      Which boolean operation to do.\n    check_volume\n      Raise an error if not all meshes are watertight\n      positive volumes. Advanced users may want to ignore\n      this check as it is expensive.\n    kwargs\n      Passed through to the `engine`.\n    \"\"\"\n    if check_volume and not all(m.is_volume for m in meshes):\n        raise ValueError(\"Not all meshes are volumes!\")\n\n    # Convert to manifold meshes\n    manifolds = [\n        Manifold(\n            mesh=Mesh(\n                vert_properties=np.array(mesh.vertices, dtype=np.float32),\n                tri_verts=np.array(mesh.faces, dtype=np.uint32),\n            )\n        )\n        for mesh in meshes\n    ]\n\n    # Perform operations\n    if operation == \"difference\":\n        if len(meshes) < 2:\n            raise ValueError(\"Difference only defined over two meshes.\")\n        elif len(meshes) == 2:\n            # apply the single difference\n            result_manifold = manifolds[0] - manifolds[1]\n        elif len(meshes) > 2:\n            # union all the meshes to be subtracted from the final result\n            unioned = reduce_cascade(lambda a, b: a + b, manifolds[1:])\n            # apply the difference\n            result_manifold = manifolds[0] - unioned\n    elif operation == \"union\":\n        result_manifold = reduce_cascade(lambda a, b: a + b, manifolds)\n    elif operation == \"intersection\":\n        result_manifold = reduce_cascade(lambda a, b: a ^ b, manifolds)\n    else:\n        raise ValueError(f\"Invalid boolean operation: '{operation}'\")\n\n    # Convert back to trimesh meshes\n    from . import Trimesh\n\n    result_mesh = result_manifold.to_mesh()\n\n    return Trimesh(\n        vertices=result_mesh.vert_properties, faces=result_mesh.tri_verts, process=False\n    )",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Project source file, manifold3d",
      "display": "trimesh/boolean.py",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Project full_name, manifold3d",
      "display": "mikedh/trimesh",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Project stargazers_count, manifold3d",
      "display": "3.7K",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Library name, cadquery",
      "display": "CadQuery",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Monthly downloads, cadquery",
      "display": "3.0M",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "License, cadquery",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Package release, cadquery",
      "display": "2.8.0",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Package release date, cadquery",
      "display": "Jun 2026",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Install, cadquery",
      "display": "python3.13 -m pip install cadquery==2.8.0",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Quickstart, cadquery",
      "display": "from cadquery import Workplane\n\npart = Workplane(\"XY\").box(1.0, 2.0, 3.0)\n",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Official description, cadquery",
      "display": "Creates and traverses parametric CAD models from Python scripts.",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Quickstart source file, cadquery",
      "display": "quickstart.html",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Repository stars, cadquery",
      "display": "6.1K",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Point-cloud dataset API, cadquery",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "OpenCascade CAD solids, cadquery",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Native geometry interface, cadquery",
      "display": "Higher-level parametric Workplane/Sketch/Shape interface over OpenCascade through OCP.",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Project function, cadquery",
      "display": "def create_wire_workplane_from_points(points, plane, origin=(0, 0, 0), obj=None):\n\n    workplane = Workplane(plane, origin=origin, obj=obj)\n\n    all_straight = all(entry[-1] == \"straight\" for entry in points)\n    all_spline = all(entry[-1] == \"spline\" for entry in points)\n\n    if all_straight:\n        entry_values = [entry[:2] for entry in points[:-1]]\n        result = workplane.polyline(entry_values).close()\n    elif all_spline:\n        entry_values = [entry[:2] for entry in points[:-1]]\n        result = workplane.spline(\n            entry_values, makeWire=True, tol=1e-1, periodic=True\n        )  # periodic smooths out the connecting joint\n    else:\n        instructions = instructions_from_points(points)\n\n        result = create_wire_workplane_from_instructions(\n            instructions=instructions,\n            workplane=workplane,\n        )\n\n    return result",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Project source file, cadquery",
      "display": "src/paramak/utils.py",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Project full_name, cadquery",
      "display": "fusion-energy/paramak",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Project stargazers_count, cadquery",
      "display": "111",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Library name, open3d",
      "display": "Open3D",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Monthly downloads, open3d",
      "display": "2.3M",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "License, open3d",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Package release, open3d",
      "display": "0.20.0",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Package release date, open3d",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Install, open3d",
      "display": "python3.13 -m pip install open3d==0.20.0",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Quickstart, open3d",
      "display": "import numpy as np\nimport open3d as o3d\n\ncloud = o3d.geometry.PointCloud()\ncloud.points = o3d.utility.Vector3dVector(\n    np.array([[0, 0, 0], [1, 0, 0], [0, 1, 0]], dtype=np.float64)\n)\nbounds = cloud.get_axis_aligned_bounding_box()\nprint(bounds)\n",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Repository stars, open3d",
      "display": "14.2K",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Point-cloud dataset API, open3d",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "OpenCascade CAD solids, open3d",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Native geometry interface, open3d",
      "display": "Dedicated point-cloud, mesh, reconstruction, registration, and visualization toolkit; selected example uses still-supported legacy geometry namespace.",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Project function, open3d",
      "display": "def get_point_cloud(coord, color=None, verbose=True):\n    if not isinstance(coord, list):\n        coord = [coord]\n        if color is not None:\n            color = [color]\n\n    pcd_list = []\n    for i in range(len(coord)):\n        coord_ = to_numpy(coord[i])\n        if color is not None:\n            color_ = to_numpy(color[i])\n        pcd = o3d.geometry.PointCloud()\n        pcd.points = o3d.utility.Vector3dVector(coord_)\n        pcd.colors = o3d.utility.Vector3dVector(\n            np.zeros_like(coord_) if color is None else color_\n        )\n        pcd_list.append(pcd)\n    if verbose:\n        o3d.visualization.draw_geometries(pcd_list)\n    return pcd_list\n",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Project source file, open3d",
      "display": "pointcept/utils/visualization.py",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Project full_name, open3d",
      "display": "Pointcept/Pointcept",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Project stargazers_count, open3d",
      "display": "3.3K",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Library name, pyvista",
      "display": "PyVista",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Monthly downloads, pyvista",
      "display": "2.1M",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "License, pyvista",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Package release, pyvista",
      "display": "0.49.2",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Package release date, pyvista",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Install, pyvista",
      "display": "python3.13 -m pip install pyvista==0.49.2",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Quickstart, pyvista",
      "display": "import pyvista as pv\n\nmesh = pv.Sphere(radius=1.0)\nprint(mesh.n_points)\n",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Repository stars, pyvista",
      "display": "3.9K",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Point-cloud dataset API, pyvista",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "OpenCascade CAD solids, pyvista",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Native geometry interface, pyvista",
      "display": "Pythonic VTK dataset/filter/plotting interface with direct mesh arrays and scientific volume/point data.",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project function, pyvista",
      "display": "def postprocess_mesh(\n    vertices: np.array,\n    faces: np.array,\n    simplify: bool = True,\n    simplify_ratio: float = 0.9,\n    fill_holes: bool = True,\n    fill_holes_max_hole_size: float = 0.04,\n    fill_holes_max_hole_nbe: int = 32,\n    fill_holes_resolution: int = 1024,\n    fill_holes_num_views: int = 1000,\n    debug: bool = False,\n    verbose: bool = False,\n):\n    \"\"\"\n    Postprocess a mesh by simplifying, removing invisible faces, and removing isolated pieces.\n\n    Args:\n        vertices (np.array): Vertices of the mesh. Shape (V, 3).\n        faces (np.array): Faces of the mesh. Shape (F, 3).\n        simplify (bool): Whether to simplify the mesh, using quadric edge collapse.\n        simplify_ratio (float): Ratio of faces to keep after simplification.\n        fill_holes (bool): Whether to fill holes in the mesh.\n        fill_holes_max_hole_size (float): Maximum area of a hole to fill.\n        fill_holes_max_hole_nbe (int): Maximum number of boundary edges of a hole to fill.\n        fill_holes_resolution (int): Resolution of the rasterization.\n        fill_holes_num_views (int): Number of views to rasterize the mesh.\n        verbose (bool): Whether to print progress.\n    \"\"\"\n\n    if verbose:\n        tqdm.write(f'Before postprocess: {vertices.shape[0]} vertices, {faces.shape[0]} faces')\n\n    # Simplify\n    if simplify and simplify_ratio > 0:\n        mesh = pv.PolyData(vertices, np.concatenate([np.full((faces.shape[0], 1), 3), faces], axis=1))\n        mesh = mesh.decimate(simplify_ratio, progress_bar=verbose)\n        vertices, faces = mesh.points, mesh.faces.reshape(-1, 4)[:, 1:]\n        if verbose:\n            tqdm.write(f'After decimate: {vertices.shape[0]} vertices, {faces.shape[0]} faces')\n\n    # Remove invisible faces\n    if fill_holes:\n        vertices, faces = torch.tensor(vertices).cuda(), torch.tensor(faces.astype(np.int32)).cuda()\n        vertices, faces = _fill_holes(\n            vertices, faces,\n            max_hole_size=fill_holes_max_hole_size,\n            max_hole_nbe=fill_holes_max_hole_nbe,\n            resolution=fill_holes_resolution,\n            num_views=fill_holes_num_views,\n            debug=debug,\n            verbose=verbose,\n        )\n        vertices, faces = vertices.cpu().numpy(), faces.cpu().numpy()\n        if verbose:\n            tqdm.write(f'After remove invisible faces: {vertices.shape[0]} vertices, {faces.shape[0]} faces')\n\n    return vertices, faces\n",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project source file, pyvista",
      "display": "trellis/utils/postprocessing_utils.py",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Project full_name, pyvista",
      "display": "microsoft/TRELLIS",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Project stargazers_count, pyvista",
      "display": "14.3K",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Library name, bpy",
      "display": "bpy",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Monthly downloads, bpy",
      "display": "2.0M",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "License, bpy",
      "display": "GPL-3.0",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Package release, bpy",
      "display": "5.3.0",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Package release date, bpy",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Install, bpy",
      "display": "python3.13 -m pip install bpy==5.3.0",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Quickstart, bpy",
      "display": "import bpy\n\nbpy.ops.mesh.primitive_cube_add(size=1.0, location=(0.0, 0.0, 0.0))\n",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Official description, bpy",
      "display": "Runs Blender as a Python module.",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Quickstart source file, bpy",
      "display": "bpy.ops.mesh.html",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Repository stars, bpy",
      "display": "22.2K",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Point-cloud dataset API, bpy",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "OpenCascade CAD solids, bpy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Native geometry interface, bpy",
      "display": "Blender scene/object/mesh/curve/volume API; PyPI module supports headless procedural geometry but full Blender application distribution is a different channel.",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Project function, bpy",
      "display": "def create_from_blender_mesh(blender_mesh: bpy.types.Mesh, object_name: str = None) -> MeshObject:\n    \"\"\" Creates a new Mesh object using the given blender mesh.\n\n    :param blender_mesh: The blender mesh.\n    :param object_name: The name of the new object. If None is given, the name of the given mesh is used.\n    :return: The new Mesh object.\n    \"\"\"\n    # link this mesh inside of a new object\n    obj = bpy.data.objects.new(blender_mesh.name if object_name is None else object_name, blender_mesh)\n    # link the object in the collection\n    bpy.context.collection.objects.link(obj)\n    return MeshObject(obj)",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Project source file, bpy",
      "display": "blenderproc/python/types/MeshObjectUtility.py",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Project full_name, bpy",
      "display": "DLR-RM/BlenderProc",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Project stargazers_count, bpy",
      "display": "3.8K",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Cleanse prose",
      "display": "3D",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python 3D libraries Open3D Trimesh PyVista vedo code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
