yuhe¶
yuhe is an interactive 3D bounding box (bbox) selection tool. It allows you to quickly fit a bbox on a mesh and export discriminator function code to check whether a point lies inside the bbox.
Interface¶

- BBox translation
- BBox rotation (unit: degrees)
- BBox scaling (length, width, height)
- Padding: extra margin added after the bbox tightly encloses the selected points
- Show/Hide transform gizmo
- Reset
- Language choice for the discriminator function (C++ / Python)
- Generate code for the discriminator function (printed in the command-line terminal)
- Data type for points (
double/float) - Variable names for point coordinates, separated by commas
How to use¶
- Hold Shift + Left Mouse Button to click on the model and mark points.
- Hold Shift + Left Mouse Button on a marked point again to remove it.
- When 3 or more points are marked, a bbox that encloses these points will be automatically computed.
- Adjust parameters in the right-side panel as needed.
- Click Generate Code to output the function code, then copy-paste it into your own project.