3D Modeling Toolkit
Project description
3D Modeling Toolkit
A toolkit integrating multiple 3D modeling libraries to support rapid use of 3d models
Examples
Part 1: The use of pywavefront
First, determine an object file path:
from tk3d.api.pywavfront import *
object_filename="data/objects/Bulldozer.obj"
Example 1: get object keys from an object file
list_object_keys=get_object_keys(object_filename)
print("List of object keys: ",list_object_keys)
Example 2: show 3d object in window
show_object(object_filename,object_key="Object.1",xyz=(0,1,-2))
Example 3: show object in pyglet.window
show_object_window(obj_filename=object_filename,
list_obj_key=["Object.1","Object.2"],
list_position=[(0, 0, -1.5),(0, 0, -1.5)],
scale=0.01,
bgcolor=(0.5,0.5,0.5)
)
Example 4: show 3d object in rotation view
show_object_window_gl(obj_filename=object_filename)
License
The tk3d
toolkit is provided by Donghua Chen with MIT License.
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
tk3d-0.0.1a0.tar.gz
(9.9 kB
view hashes)
Built Distribution
tk3d-0.0.1a0-py3-none-any.whl
(7.1 kB
view hashes)