Creating a 3d Triangular Prism for masking

Ok, thanks, I got it. So you manually translated this formula into material without using custom node, didn’t you? I’m trying to make a dynamic pie chart taking standard cylinder shape as a base and masking parts of it with triangular prism.