render state wireframe tested
encapsulate d3dutils