mesh.drawWireframe()function draws only surface edges without the interiors of the triangles. Such a mode of drawing is called wireframe drawing; it is very useful for debugging, and of course, can be used as an effect.
Also, to represent not only triangular surfaces but also objects consisting of line segments or points, use the
mesh.setMode( mode ) function, where
mode has type
ofPrimitiveMode enumeration. To see all the possible values for
mode, check its definition. We will mention only three values: