glVertex  5.5.2
Functions
glvertex_slicer.h File Reference
#include "glvertex.h"

Go to the source code of this file.

Functions

void lglSlice (const vec3 &v0, const vec3 &v1, const vec3 &v2, const vec3 &v3, const vec3 &o, const vec3 &n)
 extract a slice from a tetrahedron More...
 

Detailed Description

LGL tetrahedron slicer

Function Documentation

◆ lglSlice()

void lglSlice ( const vec3 v0,
const vec3 v1,
const vec3 v2,
const vec3 v3,
const vec3 o,
const vec3 n 
)
inline

extract a slice from a tetrahedron

  • generates the rendering commands for a sliced tetrahedron
  • 2 cases: slice geometry consists of either 1 or 2 triangles
Parameters
v0is the first of four corners of a tetrahedron
v1is the second of four corners of a tetrahedron
v2is the third of four corners of a tetrahedron
v3is the fourth of four corners of a tetrahedron
ois a point on the slicing plane
nis the normal of the slicing plane