A method of injection molding an optical component comprising: - providing a first mold cavity formed between a first mold cap and a mold core, the first mold cap having a cap injection surface, the mold core having a core injection surface and at least two spaced apart undercuts, each of the undercut having two lateral walls, a depth, a width and a length; - injecting a first amount of a molten optical material through a first mold gate into the first mold cavity, where the mold gate is located opposite to the undercuts in such a manner that the molding material flows into the first mold cavity in a direction parallel to the lateral walls of the undercuts and along the length of the undercuts; - cooling the optical material in the first mold cavity, where the optical material makes cooling contact with the undercut walls so that at the end of the cooling time a first section of the optical component is formed, the first section including at least two elongated baffles formed by the molded material located in the undercuts, where each elongated baffle includes a front surface, an opposed back surface and two lateral surfaces; - providing a second mold cavity formed between the first section of the optical component and a second mold cap; - injecting a second amount of the optical material in the second mold cavity through a second mold gate where the mold gate is positioned in alignment with the two lateral surfaces of the elongated baffles to allow the flow of the molten optical material to follow a mold filling path along the elongated baffles and form at least two spaced apart and continuous streams, thereby properly venting the second mold cavity by removing gas and insuring that no bubbles are formed in the molded optical component so that the optical component be free from distortions caused by the injection molding process. - providing a first mold cavity formed between a first mold cap and a mold core, the first mold cap having a cap injection surface, the mold core having a core injection surface and at least two spaced apart undercuts, each of the undercut having two lateral walls, a depth, a width and a length; - injecting a first amount of a molten optical material through a first mold gate into the first mold cavity, where the mold gate is located opposite to the undercuts in such a manner that the molding material flows into the first mold cavity in a direction parallel to the lateral walls of the undercuts and along the length of the undercuts; - cooling the optical material in the first mold cavity, where the optical material makes cooling contact with the undercut walls so that at the end of the cooling time a first section of the optical component is formed, the first section including at least two elongated baffles formed by the molded material located in the undercuts, where each elongated baffle includes a front surface, an opposed back surface and two lateral surfaces; - providing a second mold cavity formed between the first section of the optical component and a second mold cap; - injecting a second amount of the optical material in the second mold cavity through a second mold gate where the mold gate is positioned in alignment with the two lateral surfaces of the elongated baffles to allow the flow of the molten optical material to follow a mold filling path along the elongated baffles and form at least two spaced apart and continuous streams, thereby properly venting the second mold cavity by removing gas and insuring that no bubbles are formed in the molded optical component so that the optical component be free from distortions caused by the injection molding process.