parkcheolhee-lab

Seeing is solving

Difficulty of the geometric imagination

"I have no geometric imagination..."

I often feel this way, especially when facing complex geometry problems or writing code that deals with shapes and spaces. At least for me, it is not easy to picture complex 3D shapes in my mind. This is a big challenge and why visualization is so useful.

I think visualizing geometry is key to solving problems. Seeing what I am doing makes a huge difference. General debugging tools like print don't help much here. They give me numbers and text but don't show me the geometry I need to see.


Debug Visualizer

vscode-debug-visualizer is an extension for Visual Studio Code that significantly enhances the debugging experience by visualizing data structures or geometry during a debugging session. Unlike traditional debugging tools that rely on textual or numerical output, this visualizer transforms data into intuitive and interactive visual representations.

Visualizing geometries in debugging session

Usage

You need to install the extension for hediet.debug-visualizer in Visual Studio Code. Then, you also need to install vscode-debug-visualizer module. You can use pip to install it as follows:

    pip install vscodedebugvisualizer

After installing this extension, use the command Debug Visualizer: New View to open a new visualizer view. In this view you can enter an expression that is evaluated and visualized while stepping through your application. This view works the same as the watch view of VS Code, except that the resulting value is presented visually rather than textually and you can only watch one expression (but you can still open multiple windows).

Visualizing geometries in each debugging session

In the above demo, I used the Plotter to convert geometries to the JSON string object for visualizing 3d geometry for shapely and trimesh to process them. If you want to use the Plotter, you can install it via cloning the repository.

    git clone https://github.com/PARKCHEOLHEE-lab/debugvisualizer.git