The three values,
semiperimeter $\rho=\tfrac12(a+b+c)$,
inradius $r$ and circumradius $R$
define a cubic equation,
\begin{align}
x^3+a_2x^2+a_1x+a_0=0
,
\end{align}
which roots are the values of the three sides $a,b,c$ of the triangle:
the coefficients are
\begin{align}
a_2&=-(a+b+c)=-2\rho
,\\
a_1&=ab+bc+ca=\rho^2+4rR+r^2
,\\
a_0&=-abc=-4r\rho R
.
\end{align}
Edit:
Some light on how the expression for
$a_1=ab+bc+ca$ in terms of $\rho, r$ and $R$
can be derived.
From Heron's formula for the area $S$ of triangle
we have:
\begin{align}
&\rho^4-(a+b+c)\rho^3+(ab+bc+ca)\rho^2-abc \rho -S^2=0
,\\
&\rho^4-2\rho\rho^3+(ab+bc+ca)\rho^2-abc \rho -S^2=0
,\\
&-\rho^4+(ab+bc+ca)\rho^2-abc \rho -S^2=0
,\\
a_1&=
ab+bc+ca
=
\rho^2+abc \rho^{-1} +S^2\rho^{-2}
.
\end{align}
Now, using well-known identities $S=\rho\,r$
and $R=\frac{abc}{4S}=\frac{abc}{4\rho\,r}$, we obtain the final result:
\begin{align}
a_1=
ab+bc+ca
&=
\rho^2+abc \rho^{-1} +S^2\rho^{-2}
\\
&=
\rho^2+4\,\rho\,r\,R \rho^{-1} +(\rho\,r)^2\rho^{-2}
\\
&=
\rho^2+4r\,R +r^2
.
\end{align}
In fact, more cubics can be constructed to solve the triangle,
based on this known triple $\rho,r,R$
of linear measures.
The cubic for
$\cot\tfrac\alpha2,\cot\tfrac\beta2,\cot\tfrac\gamma2$
is the most beautiful and symmetric:
\begin{align}
a_0&=a_2=
-\frac{\rho}{r}
,\\
a_1&=
\frac{4R}{r}+1
,\\
y^3&-\frac{\rho}{r} y^2
+ \left(\frac{4R}{r}+1\right)y
-\frac{\rho}{r}
=0.
\end{align}