Trying to draw a circle with an angle in a material for a cylinder

Perhaps you could use a cube mask to change the material where it intersects a cube. This sort of idea: