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
# 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.0.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.0.tar.gz.
File metadata
- Download URL: stl_find_ball-0.1.0.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 |
3a364ee0936b0dba7cf006681c5591b9321950f7cae5a6f9d0bd51f00b5d95f7
|
|
| MD5 |
cc394fd04d82b2582514386865412737
|
|
| BLAKE2b-256 |
b3c5974d395ab981a704027696c3a11455fe59dcefa93240f32e2d10c66aa271
|
File details
Details for the file stl_find_ball-0.1.0-py3-none-any.whl.
File metadata
- Download URL: stl_find_ball-0.1.0-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 |
ec121f6314a978a215ee53c751d6498e20e6be326f57cfdd596f7f5c524a535e
|
|
| MD5 |
5cafef09b56edceb68506a66c7e66f30
|
|
| BLAKE2b-256 |
23ed2b7c54e743c1254251fcd2638230e657ca15887ae40db77bd27ef09c69ab
|