\(S=\dfrac{\left(a+b\right)^3+c^3-3ab\left(a+b\right)-3abc}{2a^2+2b^2+2c^2-2ab-2bc-2ac}\)
\(=\dfrac{\left(a+b+c\right)\left(a^2+b^2+c^2-ab-bc-ac\right)}{2a^2+2b^2+2c^2-2ab-2bc-2ac}\)
\(=\dfrac{3\cdot\left(2a^2+2b^2+2c^2-2ab-2bc-2ac\right)\cdot\dfrac{1}{2}}{2a^2+2b^2+2c^2-2ab-2bc-2ac}=\dfrac{3}{2}\)