We describe a method for generation of optical vortices that relies on bending of transparent parallelepiped-shaped samples fabricated from either glass or crystalline solid materials. It is shown that the induced singularity of optical indicatrix rotation leads in general to appearance of a mixed screw-edge dislocation of the phase front of outgoing optical beam. At the same time, some specified geometrical parameters of the sample can ensure generation of a purely screw dislocation of the phase front and, as a result, a singly charged canonical optical vortex.