Version: 2017.3
언어: 한국어

# Mesh.RecalculateNormals

매뉴얼로 전환
public void RecalculateNormals ();

## 설명

Recalculates the normals of the Mesh from the triangles and vertices.

After modifying the vertices it is often useful to update the normals to reflect the change. Normals are calculated from all shared vertices.

Imported Meshes sometimes don't share all vertices. For example, a vertex at a UV seam is split into two vertices, so the RecalculateNormals function creates normals that are not smooth at the UV seam.

Note that RecalculateNormals does not generate tangents automatically, so bumpmap Shaders do not work with the Mesh after calling RecalculateNormals. However, you can provide your own tangents.

```using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour {
void Start() {
Mesh mesh = GetComponent<MeshFilter>().mesh;
mesh.RecalculateNormals();
}
}
```
{"ft_lang_label":"__label__en","ft_lang_prob":0.7874663,"math_prob":0.90000397,"size":787,"snap":"2021-43-2021-49","text_gpt3_token_len":158,"char_repetition_ratio":0.16730523,"word_repetition_ratio":0.0,"special_character_ratio":0.18678527,"punctuation_ratio":0.14393939,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9910604,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-02T22:42:01Z\",\"WARC-Record-ID\":\"<urn:uuid:52106d51-a5fa-422c-aca9-60c9c1d82499>\",\"Content-Length\":\"20444\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:53ac2148-80d6-491b-951d-f530ae6d9ba5>\",\"WARC-Concurrent-To\":\"<urn:uuid:905f95e2-827b-4022-a56c-9e35dae2cb03>\",\"WARC-IP-Address\":\"34.120.114.139\",\"WARC-Target-URI\":\"https://docs.unity3d.com/kr/2017.3/ScriptReference/Mesh.RecalculateNormals.html\",\"WARC-Payload-Digest\":\"sha1:PWQTLOMN74NGNGCS3C3JL6XRVRYEH23R\",\"WARC-Block-Digest\":\"sha1:YLGYJTLEHCB2U54N5UTUQO7UVSI6EYMC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964362297.22_warc_CC-MAIN-20211202205828-20211202235828-00613.warc.gz\"}"}