Provides the modules to procedurally generate 3D shape models, which can be used when programming 3D games by panda3D.
In addition to generating basic 3D shapes, you can create many variations by changing parameters.
For example, you can make them hollow inside or cut them like a pie.
Currently, the following 3D shapes can be created, but I plan to add more in the future.
A model editor 3DModelEditor allows you to create a 3D model while seeing how the shape changes as you change the parameters.
And this repositroy is also a submodule for
- Panda3D 1.10.15
- numpy 2.2.4
- Python 3.12
- Windows11
- There are 12 classes, including Cylinder, Sphere, Box, Torus, Cone, Plane, QuickSphere, Capsule, RightTriangularPrism, EllipticalPrism, CapsulePrism and RoundedCornerBox, but they all have the same usage.
- Instantiate and call create method.
- When instantiating, change parameters as necessary.
- Returnd model is a NodePath of Panda3D.
from shapes import Box
box_maker = Box()
model = box_maker.create()