cmaranes / python-ply-preview

Extension for VSCode that enhances your debugging experience when working with point cloud data

Home Page:https://marketplace.visualstudio.com/items?itemName=cmaranes.python-ply-preview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VSCode Python PLY Preview

License: MIT Visual Studio Marketplace Version Visual Studio Marketplace Installs

The Python PLY Preview is a powerful extension for Visual Studio Code that enhances your debugging experience when working with point cloud data. This extension allows you to seamlessly preview and interact with PLY files and NumPy point clouds directly within the VS Code debugger.

See in VS Marketplace: python-ply-preview

How to use

  1. Place a breakpoint at the specific line of code where you want to pause execution.

  2. Initiate the program in Debug mode to start execution with breakpoints enabled.

  3. Direct your cursor over the variable name and opt for View PLY from the available options.

  4. The resulting point cloud will be showcased in a fresh tab for your reference.


PLY

PLY

NumPy

NumPy

Requirements

It is mandatory to import the Python open3d library to allow the extension to store the point cloud:

import open3d as o3d

This can be installed as pip install open3d

In case of wanting to display a pointcloud represented as a numpy array it must be shape of (n, 3), being n the number of points. You must import numpy as:

import numpy as np

The extension also needs a ply viewer extension, for example this one

Known Issues and Limitations

There is a limitation in the number of points that can be displayed. The plugin usually works with a small number of points (<500000 points).

The temporal point clouds are installed in the pycache folder.

Release Notes

0.0.3

  • pycache folder is created again if removed.

0.0.2

  • Fixed extension description and name.
  • Added stats in the README file.

0.0.1

  • Initial release.

Acknowledgments

About

Extension for VSCode that enhances your debugging experience when working with point cloud data

https://marketplace.visualstudio.com/items?itemName=cmaranes.python-ply-preview

License:MIT License


Languages

Language:TypeScript 100.0%