# Run-time API

Run-time API for calculating mesh with smooth *<mark style="color:blue;">normals</mark>* can be brought into scope with this using directive

```
using AmazingAssets.Beast;
```

Unity [Mesh](https://docs.unity3d.com/ScriptReference/Mesh.html) class now will have <mark style="color:green;">GenerateSmoothNormals</mark> extension method:

```
// Generating mesh with smooth normals

using UnityEngine;

using AmazingAssets.Beast;


public class NewMonoBehaviourScript : MonoBehaviour
{
    public Mesh mesh;
    public Mesh meshWithSmoothNormals;

    private void Start()
    {
        meshWithSmoothNormals = mesh.GenerateSmoothNormals();
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://amazing-assets.gitbook.io/beast-advanced-tessellation-shader/run-time-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
