Your linked example renders the outline as lines. This approach is a bit specific to LDraw and can’t be used in all other use cases. It actually depends on what edges you want to render. In most cases only the contour of an object should be highlighted but not edges of inner triangles. A typical approach to do so is using post-processing like demonstrated here: