---
name: "s3d_pep_line_normals"
section: "3"
platform: "linux"
package: "s3d-doc"
version: "0.2.2.1-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/s3d_pep_line_normals"
---

# s3d\_pep\_line\_normals(3)

add normals to lines

## NAME

s3d\_pep\_line\_normals - add normals to lines

## SYNOPSIS

```
#include <s3d.h>
```

**int s3d\_pep\_line\_normals(int** *object***, const float \****nbuf***, uint16\_t** *n***);**

## DESCRIPTION

Adds normal information to lines, giving each vertex of a line a normal information. This makes lines somewhat nicer, you'll need that especially when you're going to build wireframe models.

nbuf should contain n \* 6 float values, for each vertex a normal vector (x,y,z), and you have 2 vertices for each line so that makes 6 float values per line in total.

## AUTHOR

**Simon Wunderlich**

Author of s3d
