Skip to content

Instantly share code, notes, and snippets.

@kmader
Created June 24, 2020 13:16
Show Gist options
  • Select an option

  • Save kmader/41f36d7836768fe04e4b757516dc8422 to your computer and use it in GitHub Desktop.

Select an option

Save kmader/41f36d7836768fe04e4b757516dc8422 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>IPyVolume Widget</title>
</head>
<body>
<!-- Load require.js. Delete this if your page already loads require.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@jupyter-widgets/html-manager@^0.18.0/dist/embed-amd.js" crossorigin="anonymous"></script>
<script type="application/vnd.jupyter.widget-state+json">
{
"version_major": 2,
"version_minor": 0,
"state": {
"600ebcb4b1eb415db197d06a67098c12": {
"model_name": "VBoxModel",
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "VBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "VBoxView",
"box_style": "",
"children": [
"IPY_MODEL_5afd1e208e664b469958fc040722ebcc",
"IPY_MODEL_250e01fa52dd4867b104b299721cb600"
],
"layout": "IPY_MODEL_a7d9c2c0f2c54c238668edacd2296b03"
}
},
"5afd1e208e664b469958fc040722ebcc": {
"model_name": "FigureModel",
"model_module": "ipyvolume",
"model_module_version": "~0.6.0-alpha.2",
"state": {
"_dom_classes": [],
"_model_module": "ipyvolume",
"_model_module_version": "~0.6.0-alpha.2",
"_model_name": "FigureModel",
"_view_count": null,
"_view_module": "ipyvolume",
"_view_module_version": "~0.6.0-alpha.2",
"_view_name": "FigureView",
"ambient_coefficient": 0.5,
"animation": 100.0,
"animation_exponent": 1.0,
"camera": "IPY_MODEL_3163217abf74412d832c8aecc09e088b",
"camera_center": [
0.0,
0.0,
0.0
],
"camera_control": "trackball",
"camera_fov": 45.0,
"capture_fps": null,
"controls": null,
"cube_resolution": 512,
"diffuse_coefficient": 0.8,
"displayscale": 1.0,
"eye_separation": 6.4,
"height": 500,
"layout": "IPY_MODEL_5d76de5a35194ce9ada82c4454eeee1c",
"matrix_projection": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"matrix_world": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"meshes": [
"IPY_MODEL_306f587de9b44cba9a1bde48bf56ce7a",
"IPY_MODEL_5d1ab501865b4cf8abdb36a68c870993"
],
"mouse_mode": "normal",
"panorama_mode": "no",
"pixel_ratio": null,
"render_continuous": false,
"scales": {
"x": "IPY_MODEL_bb6b20903f7941b2992113e66ea18306",
"y": "IPY_MODEL_03dd77c87ae147bb863437cd2cb3a447",
"z": "IPY_MODEL_0a3489482edb4e7c9425b245f49c9307"
},
"scatters": [
"IPY_MODEL_98e8692ebec646a5b9a81ed00fae7441"
],
"scene": "IPY_MODEL_edf23861f37b40148b89abdd9899f6c4",
"selection_mode": "replace",
"selector": "lasso",
"show": "Volume",
"specular_coefficient": 0.5,
"specular_exponent": 5.0,
"stereo": false,
"style": {
"axes": {
"visible": false,
"label": {
"color": "black"
},
"ticklabel": {
"color": "black"
},
"color": "black"
},
"box": {
"visible": false
},
"background-color": "white"
},
"volumes": [],
"width": 400,
"xlabel": "x",
"ylabel": "y",
"zlabel": "z"
}
},
"3163217abf74412d832c8aecc09e088b": {
"model_name": "PerspectiveCameraModel",
"model_module": "jupyter-threejs",
"model_module_version": "^2.1.0",
"state": {
"_model_module": "jupyter-threejs",
"_model_module_version": "^2.1.0",
"_model_name": "PerspectiveCameraModel",
"_view_count": null,
"_view_module": null,
"_view_module_version": "",
"_view_name": null,
"aspect": 1.0,
"castShadow": false,
"children": [],
"far": 2000.0,
"focus": 10.0,
"fov": 45.0,
"frustumCulled": true,
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
],
"matrixAutoUpdate": true,
"matrixWorld": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
],
"matrixWorldInverse": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
],
"matrixWorldNeedsUpdate": false,
"modelViewMatrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
],
"name": "",
"near": 0.1,
"normalMatrix": [
1.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
1.0
],
"position": [
0.0,
0.0,
2.0
],
"projectionMatrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
],
"quaternion": [
0.0,
0.0,
0.0,
1.0
],
"receiveShadow": false,
"renderOrder": 0,
"rotation": [
0.0,
0.0,
0.0,
"XYZ"
],
"scale": [
1.0,
1.0,
1.0
],
"type": "PerspectiveCamera",
"up": [
0.0,
1.0,
0.0
],
"visible": true,
"zoom": 1.0
}
},
"5d76de5a35194ce9ada82c4454eeee1c": {
"model_name": "LayoutModel",
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"306f587de9b44cba9a1bde48bf56ce7a": {
"model_name": "MeshModel",
"model_module": "ipyvolume",
"model_module_version": "~0.6.0-alpha.2",
"state": {
"_model_module": "ipyvolume",
"_model_module_version": "~0.6.0-alpha.2",
"_model_name": "MeshModel",
"_view_count": null,
"_view_module": "ipyvolume",
"_view_module_version": "~0.6.0-alpha.2",
"_view_name": "MeshView",
"color": "green",
"color_scale": null,
"line_material": "IPY_MODEL_4d11ab67dd0b44eaa1e5d4d25758bf42",
"lines": null,
"material": "IPY_MODEL_3c0ee0aed7ca4fdfb7562eca581e5e74",
"sequence_index": 0,
"texture": null,
"triangles": [
{
"dtype": "uint32",
"shape": [
123232,
3
]
}
],
"u": null,
"v": null,
"visible": true,
"x": [
{
"dtype": "float32",
"shape": [
332240
]
}
],
"y": [
{
"dtype": "float32",
"shape": [
332240
]
}
],
"z": [
{
"dtype": "float32",
"shape": [
332240
]
}
]
},
"buffers": [
{
"encoding": "base64",
"path": [
"triangles",
0,
"data"
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment