Skip to content
Revar Desmera edited this page Nov 12, 2018 · 9 revisions

Debugging modules

debug_vertices(vertices, size, disabled)

Draws all the vertices in an array, at their 3D position, numbered by their position in the vertex array. Also draws any children of this module with transparency.

Arg What it is
vertices Array of point vertices.
size The size of the text used to label the vertexes.
disabled If true, don't draw numbers, and draw children without transparency. Default = false.

debug_faces(vertices, faces, size, disabled)

Draws all the vertices at their 3D position, numbered in blue by their position in the vertex array. Each face will have their face number drawn in red, aligned with the center of face. All children of this module are drawn with transparency.

Arg What it is
vertices Array of point vertices.
faces Array of faces by vertex numbers.
size The size of the text used to label the faces and vertexes.
disabled If true, don't draw numbers, and draw children without transparency. Default = false.

debug_polyhedron(points, faces, txtsize, disabled)

A drop-in module to replace polyhedron() and help debug vertices and faces. Draws all the vertices at their 3D position, numbered in blue by their position in the vertex array. Each face will have their face number drawn in red, aligned with the center of face. All given faces are drawn with transparency. All children of this module are drawn with transparency.

Arg What it is
vertices Array of point vertices.
faces Array of faces by vertex numbers.
txtsize The size of the text used to label the faces and vertexes.
disabled If true, act exactly like polyhedron(). Default = false.
Clone this wiki locally