Widget: CAD

Execute each of these cells in order, such as with

First, load CAD from your module:


In [5]:
from ipcad.widgets import CAD

Then, create an instance of CAD:


In [6]:
cadExample = CAD(assembly_url="examples/data/cutter/index.json", height=500)


Display the widget:


In [7]:
cadExample

In [7]:


In [ ]:


In [ ]:


In [ ]:


In [20]:
from IPython.html.widgets import interact
@interact(near=(1, 100), far=(100, 400))
def cam(near, far):
    cadExample.camera_near, cadExample.camera_far = near, far

In [ ]:


In [ ]:


In [ ]:


In [ ]:

You should see a little text box with some controls in it.

Now, you can update the value: