A III-N template formed on a silicon substrate includes a Distributed Bragg Reflector positioned on the silicon substrate. This results in very rapid precipitation, co-precipitation or a chemical reaction, during the course of which micro- or nanoparticles form. Within each multicolor pixel, the light generated from the stack of diodes is emitted perpendicular to the plane of the imager device via a plurality of vertical waveguides that are coupled to the optical confinement regions of each of the multiple laser diodes comprising the imager device. The resulting regular mesh located inside the triangular mesh on the surface of geometry model is divided into a tetrahedral meshed manner.