translate, scale or rotate stl 3d model, then saved it to .stl file.
Project description
stl_scale_translate_rotate
translate, scale or rotate stl 3d model, then saved it to .stl file.
Installation
pip install stl_scale_translate_rotate
Usage
from stl_scale_translate_rotate import stl_scale
from stl_scale_translate_rotate import stl_translate
from stl_scale_translate_rotate import stl_rotate_quaternion
STL_PATH = "input_filepath.stl"
EXPORT_PATH = "output_filepath.stl"
# Enlarge two times
stl_scale(STL_PATH, 2.0, EXPORT_PATH)
# Move model
stl_translate(STL_PATH, [1.0, 2.0, 3.0], EXPORT_PATH)
# Rotate model by quaternion
stl_rotate_quaternion(STL_PATH, [0.7492992877960205, 0.601024329662323, -0.1564661413431168, 0.2298665046691895], EXPORT_PATH)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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_scale_translate_rotate-0.1.1.tar.gz.
File metadata
- Download URL: stl_scale_translate_rotate-0.1.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e67cdcbca23f9b7635d4ce42d8454c1350e6db334c2bed82c1d57903de2edfb9
|
|
| MD5 |
bcf5161b59f27aeb854b538e1fcea538
|
|
| BLAKE2b-256 |
f992426e7ae08db041de1665d9d38d61349ce09f06b8161fdc771ae18aa23903
|
File details
Details for the file stl_scale_translate_rotate-0.1.1-py3-none-any.whl.
File metadata
- Download URL: stl_scale_translate_rotate-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23ac6ddabc6aca108f16d2b4e42912eecf000b928fc52807db0fd59c779a7b1b
|
|
| MD5 |
7010818e5c9d6d4293c07b0ae84697dc
|
|
| BLAKE2b-256 |
f59216c99bde2c61c573f549daf694436d7434fb97bbb540129f41a45a5bc639
|