Fixed interface so the renderer uses Trackball interaction, extent and limits work.

Added a notebook, showing a simple example of using the vtkView
This commit is contained in:
Gudni Karl Rosenkjaer
2013-11-17 14:31:44 -08:00
parent 2a770f6fd4
commit 37bcf891be
3 changed files with 26 additions and 11 deletions
+17 -3
View File
@@ -19,7 +19,7 @@
{
"cell_type": "code",
"collapsed": false,
"input": "#Make a mesh and model\nx0 = np.zeros(3)\nh1 = np.ones(20)*5\nh2 = np.ones(10)*10\nh3 = np.ones(5)*20\n\nmesh = simpeg.mesh.TensorMesh([h1,h2,h3],x0)\n",
"input": "#Make a mesh and model\nx0 = np.zeros(3)\nh1 = np.ones(20)*50\nh2 = np.ones(10)*100\nh3 = np.ones(5)*200\n\nmesh = simpeg.mesh.TensorMesh([h1,h2,h3],x0)\n",
"language": "python",
"metadata": {},
"outputs": [],
@@ -43,14 +43,28 @@
"outputs": [],
"prompt_number": 4
},
{
"cell_type": "code",
"collapsed": false,
"input": "mesh.nCxx",
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
"prompt_number": 7,
"text": "20"
}
],
"prompt_number": 7
},
{
"cell_type": "code",
"collapsed": false,
"input": "",
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 4
"outputs": []
}
],
"metadata": {}