The sample demonstrates creation of curves. It also demonstrates access to its properties and visualisation
See the source code for implementation and comments. It is straightforward.