patrickfuller / imolecule

An embeddable webGL molecule viewer and file format converter.
http://patrickfuller.github.io/imolecule/
MIT License
86 stars 18 forks source link

Buttons respond to input & Unit cell option #1

Closed lknapp closed 11 years ago

lknapp commented 11 years ago

'chooseButtons' selects which buttons display on the main page depending on properties of the input; periodic connections are searched for, and boundary type and camera options are displayed if they are found.

'drawCell' enables the user to choose if the boundaries of a crystalline unit cell should be displayed by selecting it from the 'boundary-type' drop-down.

patrickfuller commented 11 years ago

The functionality is there, but this can be implemented without requiring API changes. I commented the code here, partially because of the API issues and partially to show you how github works in these scenarios.