Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takana671/shapes
Procedurally generating 3D shape models
https://github.com/takana671/shapes
3d-models 3d-shapes panda3d python3
Last synced: 5 days ago
JSON representation
Procedurally generating 3D shape models
- Host: GitHub
- URL: https://github.com/takana671/shapes
- Owner: taKana671
- Created: 2024-08-12T05:21:28.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-01-05T06:36:07.000Z (about 1 month ago)
- Last Synced: 2025-01-05T07:33:10.769Z (about 1 month ago)
- Topics: 3d-models, 3d-shapes, panda3d, python3
- Language: Python
- Homepage:
- Size: 437 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shapes
Provides the classes to procedurally generate 3D shape models, which can be used when programming 3D games by panda3D.
In addition to the basic 3D shapes: box, cone, cylinder, sphere and torus, by changing parameter values, various kinds of 3D shapes can be created.
For example, changing the number of cone's bottom sides to 4 generates a square pyramid shape model.
The simple editor, ModelDisplay, enables you to create such shape models while confirming their parameter values.
And this repositroy is also a submodule for [DeliveryCart](https://github.com/taKana671/DeliveryCart) and [MazeLand](https://github.com/taKana671/MazeLand).https://github.com/user-attachments/assets/43e0ae50-9e07-4ac0-9047-57782b8ed7a5
# Requirements
* Panda3D 1.10.14
* numpy 1.23.5# Environment
* Python 3.11
* Windows11# Usage of class
* There are 7 classes, including Sphere, Box, Torus, Cone, Plane, QuickSphere and Plane.
* Instantiate and call create method.
* Change parameter values as needed in instantiation.
```
from shapes.src import Boxbox_maker = Box()
model = box_maker.create()
```
# Usage of editor
```
>>> cd shapes
>>> python model_display.py
```