-
Notifications
You must be signed in to change notification settings - Fork 7
3. Display debug view for your triangulations
Cédric Jules edited this page Jan 6, 2016
·
2 revisions
Although triangulations are rarely used directly for display, it is useful to have some tools showing them for debug.
Assuming you have instanciated and populated a DDLSMesh object, you can use the DDLSSimpleView class to quickly see the resulting triangulation.
example:
var view:DDLSSimpleView = new DDLSSimpleView();
addChild(view.surface);
view.drawMesh(mesh);A default viewport is created, you must add it to the display list to see the result. Then call the drawMesh() method every time you need to refresh the display of your triangulation.
example of a simple view with a maze mesh:

Constrained edges are drawn in red whereas underlying triangulation's edges are in gray.