PyreFrame is a wireframe 3D graphics engine which uses turtle graphics. It is highly inefficient, unrealistic, and does not support rotation of any kind.
Project description
PyWireframe V0.3
PyWireframe is a Python library for creating 3D wireframe graphics. It's highly inefficient (it uses turtle graphics) and doesn't support rotation.
Installation
Use the package manager pip to install PyWireframe.
pip install PyWireframe
Usage
Objects: Added in version 0.2, PyWireframe supports the creation of objects that will always be rendered. It uses the following syntax:
createObject(shape, x, y, z, size) #Creates an object. The shape parameter can use any function defined in the format shown in the 'Shapes' section.
deleteObject(value) #Deletes the object asigned to the specified value. The number of an object is assigned when it is created.
printObject(value) #Prints the object associated with a specific value.
Shapes: PyWireframe has several shape functions built in, but you can also define your own. Currently built-in shapes are:
cube(x, y, z, size) # a cube
pyramid3(x, y, z, size) # a 3 sided pyramid
pyramid4(x, y, z, size) # a 4 sided pyramid
You can also define your own shapes with theline(x1, y1, z1, x2, y2, z2)
function, e.g
def square:
line(0, 0, 0, 100, 0, 0)
line(0, 0, 0, 0, 100, 0)
line(100, 100, 0, 100, 0, 0)
line(100, 100, 100, 0, 0, 0)
but it must use the format:def shape(x, y, z, size):
for it to be used as an object.
The Camera: PyWireframe has a camera, which can be moved withmoveCamera(axis, amount)
. Bear in mind that axis
must be in quotations, e,g moveCamera("X", 50)
License
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
Built Distribution
Hashes for PyWireframe-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b2a7ae99b7433d893127ffb7fa0dddf86e5f22a5664e05400b87539068a6925 |
|
MD5 | a826407d5e52a6a74c8a023dfc5a7e7d |
|
BLAKE2b-256 | ac62aeb8d69959e31f90cba674840b4a80b2e38de53d6cd0b820c278f91f289b |