Skip to main content

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_PATH2.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stl_scale_translate_rotate-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stl_scale_translate_rotate-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file stl_scale_translate_rotate-0.1.0.tar.gz.

File metadata

  • Download URL: stl_scale_translate_rotate-0.1.0.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

Hashes for stl_scale_translate_rotate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a1e94b44f22f7855424ace3050c6563a4056d2787278bbda67321047e03f9092
MD5 b1507bfc4960023464e37a01a1db9ac0
BLAKE2b-256 b5afbaef3fa04f4ef4d14fc0229de0dacf45482d6fa1fa8d369af657af85123d

See more details on using hashes here.

File details

Details for the file stl_scale_translate_rotate-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stl_scale_translate_rotate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7008e8face53dc7984e77ac7b3e960a03670a3d86785ed5ee90269be9edba031
MD5 7119591b3b417d4b4f20993b82b733ad
BLAKE2b-256 bfc4546afc1ad1b79360e757a450d0d1018220bf278064a3ae8d73986e7221a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page