Skip to content

JustinLinKK/stl-sampling-with-trimesh

Repository files navigation

Stl Scan

 

Stl Scan with Trimesh and PyTorch

Github top language Github language count Repository size License

About   |   Features   |   Technologies   |   Requirements   |   Starting   |   Example   |   License   |   Author


🎯 About

This is a python library used for the 3D points sampling form the stl files. Aimed for the fast 3D model dataset creation. The newest function please visit the example.py

✨ Features

✔️ CUDA boost for precise interior stl points sampling;
✔️ Output the points as numpy array or files;

🚀 Technologies

The following tools were used in this project:

✅ Requirements

Before starting 🏁, you need to have Git and Python 3.10 + installed.

🏁 Starting

# Clone this project
$ git clone https://github.com/JustinLinKK/stl-sampling-with-trimesh

# Access
$ cd stl-sampling-with-trimesh

# Install dependencies
$ pip install -r requirements.txt
# Install pytorch with CUDA (CUDA is optional)
$ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
$ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu

# Run the project
$ python example.py

🏁 Example

📝 License

This project is under license from MIT. For more details, see the LICENSE file.

Made with ❤️ by JustinLinKK

 

Back to top

About

Create dataset from stl files and 3D geometry

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages