A rotary engine comprising: a stator body having an internal cavity defined by two axially spaced apart end walls and a peripheral wall extending between the end walls, the cavity having a shape defining two lobes; a rotor body having three circumferentially spaced apex portions, the rotor body being engaged to an eccentric portion of a shaft to rotate and perform orbital revolutions within the cavity with each of the apex portions remaining in sealing engagement with the peripheral wall through at least one apex seal and separating three rotating chambers of variable volume defined in the cavity around the rotor body; the peripheral wall including a first non-circular opening (62; 162) formed through the peripheral wall and defining at least part of a port (40, 44), the port further including second and third non-circular openings (68, 70) defined through the peripheral wall downstream of the first opening, the first opening (62; 162) having a perimeter defined by a first edge (64; 164) and remaining edges (66; 166b), the remaining edges (66; 166b) being located downstream of the first edge (64; 164) with respect to a direction of rotation of the rotor body, the remaining edges (66; 166b) extending non parallel to a longitudinal axis of the at least one apex seal of each apex portion the port (40, 44) having a first bridging element separating the first and second openings (62, 68) and a second bridging element separating the first and third openings (62, 70), the bridging elements (72, 74) having an inner surface aligned with an inner surface of the peripheral wall and defining the remaining edges of the first opening; and the first opening (62, 162) having a triangular or substantially triangular shape, characterised in that: the bridging elements (72, 74) each have a first end extending from a respective end of the first edge and having interconnected second ends, thus presenting an "inverted V" shape to the moving apex seals. a stator body having an internal cavity defined by two axially spaced apart end walls and a peripheral wall extending between the end walls, the cavity having a shape defining two lobes; a rotor body having three circumferentially spaced apex portions, the rotor body being engaged to an eccentric portion of a shaft to rotate and perform orbital revolutions within the cavity with each of the apex portions remaining in sealing engagement with the peripheral wall through at least one apex seal and separating three rotating chambers of variable volume defined in the cavity around the rotor body; the peripheral wall including a first non-circular opening (62; 162) formed through the peripheral wall and defining at least part of a port (40, 44), the port further including second and third non-circular openings (68, 70) defined through the peripheral wall downstream of the first opening, the first opening (62; 162) having a perimeter defined by a first edge (64; 164) and remaining edges (66; 166b), the remaining edges (66; 166b) being located downstream of the first edge (64; 164) with respect to a direction of rotation of the rotor body, the remaining edges (66; 166b) extending non parallel to a longitudinal axis of the at least one apex seal of each apex portion the port (40, 44) having a first bridging element separating the first and second openings (62, 68) and a second bridging element separating the first and third openings (62, 70), the bridging elements (72, 74) having an inner surface aligned with an inner surface of the peripheral wall and defining the remaining edges of the first opening; and the first opening (62, 162) having a triangular or substantially triangular shape, characterised in that: the bridging elements (72, 74) each have a first end extending from a respective end of the first edge and having interconnected second ends, thus presenting an "inverted V" shape to the moving apex seals. the bridging elements (72, 74) each have a first end extending from a respective end of the first edge and having interconnected second ends, thus presenting an "inverted V" shape to the moving apex seals.