logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

s3d_pep_line_normals - add normals to lines

Author

SimonWunderlich
           Author of s3d

s3d                                                                                      S3D_PEP_LINE_NORMALS(3)

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.

Name

       s3d_pep_line_normals - add normals to lines

Synopsis

#include<s3d.h>ints3d_pep_line_normals(intobject,constfloat*nbuf,uint16_tn);

See Also