Bouncing off of irregular objects

i need a way to get the angle of any side on an object and have a ball bounce off of that side. let’s use a triangle for example. one edge is exactly on the edge of the hitbox, but the other two aren’t. how could i make the ball bounce off of the other two sides? keep in mind that this would have to work for an irregular object with a lot of angles and no symmetry.