3D-printed resistor