Having attempted to create a MyConeMesh/Geometry outside of the Qt source tree 
based upon CylinderMesh and CylinderGeometry (made more interesting by the 
internal private implementation tendrils); suggest creating a hybrid of the 
"custom-mesh-cpp" example and one of the aforementioned mesh/geometry duos that 
combines the geometry vertex, indices, functors, etc from the two shapes you 
mentioned.

This approach worked out quite well so far for implementing a variation on a 
truncated cone.

> On Jan 22, 2016, at 2:50 PM, Andy <asmalo...@gmail.com> wrote:
> 
> Let's say I want to create a FooMesh (a QGeometryRenderer) and I want to 
> create that mesh by combining a cylinder and a torus.
> 
> Is there a way for me to create a FooGeometry that uses both a 
> QCylinderGeometry and a QTorusGeometry?
> 
> I may be thinking about the problem the wrong way, so guidance appreciated.  
> The goal is to create a new mesh that is constructed using the primitive 
> geometries instead of re-implementing them.
> 
> Thanks!
> 
> - Andy
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to