+
Skip to content

taKana671/shapes

Repository files navigation

shapes

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

Image Image Image

Requirements

  • Panda3D 1.10.15
  • numpy 2.2.4

Environment

  • Python 3.12
  • Windows11

Usage of modules

  • 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() 

About

Procedurally generating 3D shape models

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载