Skip to main content

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

MIT

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

PyWireframe-0.3.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

PyWireframe-0.3.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

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