I needed to make a cylinder with one side open, optimizing for minimal triangles in this mesh, as I have a lot of copies of it in my resulting model. So I've added flags into the primitives.Cylinder to optionally not generate top and/or bottom of the cylinder and skip those triangles.
Flags are set to positive by default, so preserve current behavior of the existing code.
I didn't try to optimise local allocations to not create the corresponding meshes at all. This only prevents including them into resulting mesh. I can do that easily if it's worth it.
I needed to make a cylinder with one side open, optimizing for minimal triangles in this mesh, as I have a lot of copies of it in my resulting model. So I've added flags into the
primitives.Cylinder
to optionally not generate top and/or bottom of the cylinder and skip those triangles.Flags are set to positive by default, so preserve current behavior of the existing code.
I didn't try to optimise local allocations to not create the corresponding meshes at all. This only prevents including them into resulting mesh. I can do that easily if it's worth it.