find ball structure in a certain .stl model.
Project description
stl_find_ball
find ball structure in a certain .stl model.
Installation
pip install stl_find_ball
Usage
from stl_find_ball import locate_sphere_in_stl, vtk_visualization
# input your stl filepath
STL_FILE = "BONE-1.stl"
# the max search range of balls
# the best ALPHA is 2 * (radius of ball)
ALPHA = 0.01
# detected_spheres is a list of tuple
# tuple: ((center_x, center_y, center_z), radius)
detected_spheres = locate_sphere_in_stl(
stl_path=STL_FILE,
alpha=ALPHA
)
# visualize the balls with stl model with VTK
vtk_visualization(
stl_path=STL_FILE,
spheres=detected_spheres
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stl_find_ball-0.1.1.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stl_find_ball-0.1.1.tar.gz.
File metadata
- Download URL: stl_find_ball-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.11.15 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c6d092cd6a44f47f6804508766c84f6869e454957376c7fdd1172d0fa5203f0
|
|
| MD5 |
4e630d5621bcb9aba66dc7ff4058dee3
|
|
| BLAKE2b-256 |
e489bbfdeddcd3c91681cb71fdf863f330cd6c2557572ffc5f8a49bd02cd970a
|
File details
Details for the file stl_find_ball-0.1.1-py3-none-any.whl.
File metadata
- Download URL: stl_find_ball-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.11.15 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa7e740a4e5a416ba7cc5e223e06b7055ba9e9876c4e788f806f7625aa5a1987
|
|
| MD5 |
3b0e0c70a36d87a3ec88bc4042c664df
|
|
| BLAKE2b-256 |
102bb351021595e926a0d3cc8250cab50b74d1a6aa3fdd184927301b8ec0044d
|