Is it possible to create dynamic "lines" with the Cube element to represent different "Dimensions" during runtime?
I have successfully created a cube and implemented functionality for users to input dimensions and modify the cube in real time. You can view the code here: http://jsfiddle.net/9Lvk61j3/
Currently, I am looking to display the actual Dimensions so that users are aware of the length, width, and height they are adjusting.
Here is the desired end result:
Below is the HTML code snippet: HTML:
<script src="http://www.html5canvastutorials.com/libraries/three.min.js"></script>
<div id="container"></div>
<div class="inputRow clear" id="dimensionsNotRound" data-role="tooltip">
<label class="grid-8">Dimensions (pixels):</label>
<br/>
<br/>
<div> <span>Length</span>
<input class="numeric-textbox" id="inp-length" type="text" value="100">
<br/>
<br/>
</div>
<div> <span>Width</span>
<input class="numeric-textbox" id="inp-width" type="text" value="50">
<br/>
<br/>
</div>
<div> <span>Height</span>
<input class="numeric-textbox" id="inp-height" type="text" value="40">
<br/>
<br/>
</div>
<button id="btn">Click me to change the Dimensions</button>
JS
For reference, here is the corresponding JSFiddle link: http://jsfiddle.net/9Lvk61j3/
If you require any additional information or have suggestions, please let me know.