Lacking any experience in Blender to create models myself currently, I’m a heavy user of the MeshBuilder helper functions. I’ve become a master at stacking Boxes, Cylinders, and the like and then merging them into a single mesh. (Remember the Wooden Building Blocks toy from when you were a kid?)
I have a question about adding some more support for customizing the basic elements further. This will save me on lots of unneeded/not visible sides and faces of the basic elements meshes. And perhaps it will benefit other developers as well that like to use the MeshBuilder for basic 3D shapes.
For the CreateBox I’m looking for a way to give the function an argument to select which faces of the Box I want to have in the result (default all 6). For example if I pass the argument such that not to have the bottom square, then the Box would be hollow from beneath. Also I am looking for a way to set a different size of the bottom and the top (like you can do when creating Cylinders) so I can easily make Trapezium-like and Parallelogram-Like boxes etc.
For the CreateCylinder I’m looking for a way to omit some of the created caps (default CAP_ALL). E.g. with CAP_START I only want the bottom ring and no vertices and triangles for the top ring of the cylinder (the Cylinder becomes hollow from the top, like a trash can or bin).
Same for ExtrudePolygon to be able to set both, one or the other, or none of the caps. (Whether these faces/sides triangles&vertices are created or not.)
For the CreatePolyhedron I have a hard time finding the correct rotation to set to make the Prisms and/or Pyramids bottom plane match the world XZ-plane (‘stand firmly on the ground’). The Pyramids I create always show up by default in some tilted rotation… any ideas perhaps?
Any ideas are welcome.
Perhaps some of the solutions I can implement myself to the GitHub project - once I know how to alter the creation logic of the 3D Mesh construction properly (“which faces and vertices to comment out”).