xml3d / xml3d-stl-plugin

Plugin to use STL models as external mesh references
MIT License
3 stars 1 forks source link

Transformations #1

Closed chriscarex closed 8 years ago

chriscarex commented 8 years ago

Hi, it would be great to add the possibility to apply CSS transformations to the STL. From my trials, it should not work at the moment. If there's a way to apply them now (v5.0.1) please let me know! Christian

ksons commented 8 years ago

Hi,

the <mesh> element that references the STL file, or any parent group element is transformable, for instance using CSS. In the example, open a console and try:

document.querySelector("mesh").style.transform = "translate3d(2px, 1px, -3px)"

Works for me.

chriscarex commented 8 years ago

perfect it works