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.show()

example

API reference

Vector Vector3 Vector4 Transform Rotation Color

Top

Project details


Release history Release notifications | RSS feed

This version

0.1.0

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.1.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

py3d-0.1.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py3d-0.1.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for py3d-0.1.0.tar.gz
Algorithm Hash digest
SHA256 89a24cd2331dd1bc1b74e8bcbc8545ef455b70f0378af3e20cd75d8aa5c1ffbf
MD5 01a1ded7a5a8d7011b83b48ac8317d18
BLAKE2b-256 19c5f6e799c8c2efbfc3c4c1164b0d33f1eeb8144eed8631587da4a98d29669e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py3d-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for py3d-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73aa8fbdb8d585e6de4714259b6e78a7b515edfbb12e893a9b230bb941bbb330
MD5 78ce38b893ac1ffb502b4a0a1fce507c
BLAKE2b-256 aa58f604f75abe7f26afcd546722080f11c6fd5ed9aca0fde998f47bfaa632eb

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