Skip to main content

py3d is a 3d computational geometry library that deals with 3d data in batches. And it embedded an interactive viewer that can work in jupyter notebook.

Project description

Scenario Tool Kit

Scenario Github is a series of python libraries that helping building simulation environment easily and quickly. Click Here to see documents

py3d

py3d is one of the scenario libraries. It is a python 3d computational geometry library, which can deal with points, lines, planes and 3d meshes in batches.

It is under development and unstable currently. But it is designed to be simple, stable and customizable:

  • simple means api will be less than usual and progressive
  • stable means it will have less dependeces and modules, and it will be fully tested
  • customizable means it will be a libaray rather than an application, it only provide data structures and functions handling basic geometry concepts

Installation

pip install py3d

Example

import py3d
import numpy
cars = py3d.cube(0.5,0.2,0.3) @ py3d.Transform.from_translation(y=range(1,6), z=0.15)
t = 0
dt = 0.1
while t<4:
    py3d.render(cars, t=t)
    cars @= py3d.Transform.from_rpy(py3d.Vector3(z=dt * numpy.linspace(0.1,1,5)))
    t += dt
py3d.render(cars, t=t)

example

API reference

Data Vector Vector3 Vector4 Transform Rotation Color

Top

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

py3d-0.0.91.tar.gz (14.2 kB view hashes)

Uploaded Source

Built Distribution

py3d-0.0.91-py3-none-any.whl (13.5 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