Gettin Trail's shape

Hello Everyone,

Currently I’m working on a project that I draw things into screen Using Trail Renderer,
Is there way to put the shapes that I draw into my GameObject?
For example I draw a circle I want my GameObject to be a circler.

Thank you.

You appear to be looking for TrailRenderer.BakeMesh