[Interest] [Qt3D] Combining multiple QGeometry classes?
Paul Sorensen
pauls at senseallc.com
Fri Jan 22 23:27:21 CET 2016
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 <asmaloney at 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 at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list