While exploring HTML5, I came across the difference between SVG and Canvas – SVG being declarative and Canvas being imperative. It got me thinking about a more advanced declarative technology that could define shapes, specify a viewpoint, and let the browser handle hidden surface removal.
I tried searching online but didn't come up with much except for this link, which wasn't very helpful.
Is there a javascript library available for performing hidden surface removal on a new extended standard in development?
For instance, I would like to define a cube with 12 edges, set specific opacity levels for surfaces (instead of wireframing), and instruct the browser not to display the "back" surfaces.