{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Geometry types" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from pythreejs import *\n", "from IPython.display import display\n", "from math import pi" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "ca5a7cbfedcc4d8886a0317b8b2b6d2d", "version_major": 2, "version_minor": 0 }, "text/html": [ "
Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=BoxGeometry(depth=15.0, depthSegments=15, height=10.0, heightSegments=10, width=5.0, widthSegments=5), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "BoxGeometry(\n", " width=5, \n", " height=10, \n", " depth=15,\n", " widthSegments=5, \n", " heightSegments=10,\n", " depthSegments=15)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "8d1594d3d599493e8f2e7d8f70ec23a4", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=BoxBufferGeometry(depth=15.0, depthSegments=15, height=10.0, heightSegments=10, width=5.0, widthSegments=5), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "BoxBufferGeometry(\n", " width=5, \n", " height=10, \n", " depth=15,\n", " widthSegments=5, \n", " heightSegments=10,\n", " depthSegments=15)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "a931c77a045744d8a4877e12a8e1ffc0", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=CircleGeometry(radius=10.0, segments=10, thetaLength=5.0, thetaStart=0.25), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "CircleGeometry(\n", " radius=10,\n", " segments=10,\n", " thetaStart=0.25,\n", " thetaLength=5.0)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "26e7a24b126e4b8ea3ae854e312d2c04", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=CircleBufferGeometry(radius=10.0, segments=10, thetaLength=5.0, thetaStart=0.25), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "CircleBufferGeometry(\n", " radius=10,\n", " segments=10,\n", " thetaStart=0.25,\n", " thetaLength=5.0)" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "f437728fe7ff44c79f4a30e4ebd38b26", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=CylinderGeometry(height=15.0, heightSegments=10, radiusBottom=10.0, radiusTop=5.0), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "CylinderGeometry(\n", " radiusTop=5, \n", " radiusBottom=10, \n", " height=15, \n", " radialSegments=6, \n", " heightSegments=10, \n", " openEnded=False, \n", " thetaStart=0, \n", " thetaLength=2.0*pi)" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "f9cc70f912644b8c976f68593e5dd93d", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=CylinderBufferGeometry(height=15.0, heightSegments=10, radiusBottom=10.0, radiusTop=5.0), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "CylinderBufferGeometry(\n", " radiusTop=5, \n", " radiusBottom=10, \n", " height=15, \n", " radialSegments=6, \n", " heightSegments=10, \n", " openEnded=False, \n", " thetaStart=0, \n", " thetaLength=2.0*pi)" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "8a4723bba17c4ac6afd545fa77cde49e", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=DodecahedronGeometry(radius=10.0), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "DodecahedronGeometry(radius=10, detail=0, _flat=True)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# TODO:\n", "# EdgesGeometry(...)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# TODO:\n", "# ExtrudeGeometry(...)" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "450ea16f13934f8e9da40d42ab4e159f", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=IcosahedronGeometry(radius=10.0), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "IcosahedronGeometry(radius=10, _flat=True)" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "a45e7a99db0a496c9d336eb11189b039", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=LatheBufferGeometry(points=[[0, -10, 0], [10, -5, 0], [5, 5, 0], [0, 10, 0]], segments=16), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LatheBufferGeometry(\n", " points=[\n", " [ 0, -10, 0 ],\n", " [ 10, -5, 0 ],\n", " [ 5, 5, 0 ],\n", " [ 0, 10, 0 ]\n", " ],\n", " segments=16,\n", " phiStart=0.0,\n", " phiLength=2.0*pi, _flat=True)" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "2fe40d95b83344398e2357b1e8839b6d", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=OctahedronGeometry(radius=10.0), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "OctahedronGeometry(radius=10, detail=0, _flat=True)" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "fbd0c979771f46fd97af4d5ea56dc915", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=ParametricGeometry(func='function(u,v) { \\n var x = 5 * (0.5 - u);\\n var y = 5 * (0.5 - v);\\n return new THREE.Vector3(10 * x, 10 * y, x*x - y*y); \\n }', slices=5, stacks=10), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "ParametricGeometry(\n", " func=\"\"\"function(u,v) { \n", " var x = 5 * (0.5 - u);\n", " var y = 5 * (0.5 - v);\n", " return new THREE.Vector3(10 * x, 10 * y, x*x - y*y); \n", " }\"\"\",\n", " slices=5,\n", " stacks=10, _flat=True)" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "384fffb11bda43749d80e20878cd98a3", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=PlaneGeometry(height=15.0, heightSegments=10, width=10.0, widthSegments=5), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "PlaneGeometry(\n", " width=10,\n", " height=15,\n", " widthSegments=5,\n", " heightSegments=10)" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "e168ce37a6da4885839edde216216b2f", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=PlaneBufferGeometry(height=15.0, heightSegments=10, width=10.0, widthSegments=5), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "PlaneBufferGeometry(\n", " width=10,\n", " height=15,\n", " widthSegments=5,\n", " heightSegments=10)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# TODO\n", "# PolyhedronGeometry(...)" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "25bdc3ce41ee4895960435950b36d837", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=RingGeometry(innerRadius=10.0, outerRadius=25.0, phiSegments=12), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# TODO: issues when radius is 0...\n", "RingGeometry(\n", " innerRadius=10,\n", " outerRadius=25,\n", " thetaSegments=8,\n", " phiSegments=12,\n", " thetaStart=0,\n", " thetaLength=6.283185307179586)" ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "306e36b0a11741b78256db5927797ae4", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=RingBufferGeometry(innerRadius=10.0, outerRadius=25.0, phiSegments=12), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# TODO: issues when radius is 0...\n", "RingBufferGeometry(\n", " innerRadius=10,\n", " outerRadius=25,\n", " thetaSegments=8,\n", " phiSegments=12,\n", " thetaStart=0,\n", " thetaLength=6.283185307179586)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# TODO\n", "# ShapeGeometry(...)" ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "99fa4fdcd9ea47778893746fb988b874", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=SphereGeometry(phiLength=4.71238898038469, radius=20.0, thetaLength=2.0943951023931953), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "SphereGeometry(\n", " radius=20,\n", " widthSegments=8,\n", " heightSegments=6,\n", " phiStart=0,\n", " phiLength=1.5*pi,\n", " thetaStart=0,\n", " thetaLength=2.0*pi/3.0)" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "e59325cf65ac4f72b40eb6e2663c3b78", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=SphereBufferGeometry(phiLength=4.71238898038469, radius=20.0, thetaLength=2.0943951023931953), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "SphereBufferGeometry(\n", " radius=20,\n", " widthSegments=8,\n", " heightSegments=6,\n", " phiStart=0,\n", " phiLength=1.5*pi,\n", " thetaStart=0,\n", " thetaLength=2.0*pi/3.0)" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "7d9dc7400d2d4684b389f770f2666bb8", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=TetrahedronGeometry(detail=1, radius=10.0), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "TetrahedronGeometry(radius=10, detail=1, _flat=True)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# TODO: font loading\n", "# TextGeometry(...)" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "8a9a764939554b3ebaf59c6e21e8d03f", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=TorusGeometry(arc=4.71238898038469, radialSegments=20, radius=20.0, tube=5.0), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "TorusGeometry(\n", " radius=20,\n", " tube=5,\n", " radialSegments=20,\n", " tubularSegments=6,\n", " arc=1.5*pi)" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "fe60cda4edad4c8db46f9fc0cdfb1f64", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=TorusBufferGeometry(radius=100.0), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "TorusBufferGeometry(radius=100)" ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "71cabe4c82fe416f9c9b5c491f5daebc", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=TorusKnotGeometry(radius=20.0, tube=5.0), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "TorusKnotGeometry(\n", " radius=20,\n", " tube=5,\n", " tubularSegments=64,\n", " radialSegments=8,\n", " p=2,\n", " q=3)" ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "027f2a80fb51421bb199b485a066ac0d", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=TorusKnotBufferGeometry(radius=20.0, tube=5.0), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "TorusKnotBufferGeometry(\n", " radius=20,\n", " tube=5,\n", " tubularSegments=64,\n", " radialSegments=8,\n", " p=2,\n", " q=3)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# TODO: handling THREE.Curve\n", "TubeGeometry(\n", " path=None,\n", " segments=64,\n", " radius=1,\n", " radiusSegments=8,\n", " close=False)" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "063b5042da664abb93196617a126ae20", "version_major": 2, "version_minor": 0 }, "text/html": [ "Failed to display Jupyter Widget of type Preview.
\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "
\n", "\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "
\n" ], "text/plain": [ "Preview(child=WireframeGeometry(geometry=TorusBufferGeometry(radialSegments=6, radius=20.0, tube=5.0, tubularSegments=20)), shadowMap=WebGLShadowMap())" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "WireframeGeometry(geometry=TorusBufferGeometry(\n", " radius=20,\n", " tube=5,\n", " radialSegments=6,\n", " tubularSegments=20,\n", " arc=2.0*pi\n", "))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "state": { "02583251763f488d8c98cf0cdb57a0cc": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "027f2a80fb51421bb199b485a066ac0d": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_0b86ff48f0a64858a0dd2935647c62cd", "layout": "IPY_MODEL_5c5c0da203c74f70843d5e39b906023d", "shadowMap": "IPY_MODEL_60fbefea9910495c8c5a7316d2c20e51" } }, "063b5042da664abb93196617a126ae20": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_f7dbb7cab76643df8d909dfe86d060a8", "layout": "IPY_MODEL_8777c1293f914dc0b9e6c83c750fd773", "shadowMap": "IPY_MODEL_c8eef51fcb074b8295062bbd64326349" } }, "07acdb5752134a37baab5e0159385640": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "0b86ff48f0a64858a0dd2935647c62cd": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "TorusKnotBufferGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "radius": 20, "tube": 5 } }, "0c561409633e456ab0f6b523d14e6db6": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "10ba353085b44857831f8749649e0cc8": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "BoxBufferGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "depth": 15, "depthSegments": 15, "height": 10, "heightSegments": 10, "width": 5, "widthSegments": 5 } }, "11804d1c085b496d82e6d8d96b2835b5": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "17b41b4ebd53435b97df8879f564939c": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "1e2138cc608e496bba8993dfe9a793a5": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "SphereBufferGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "phiLength": 4.71238898038469, "radius": 20, "thetaLength": 2.0943951023931953 } }, "25bdc3ce41ee4895960435950b36d837": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_5a9349719e564ad6a61362bdb205a5d1", "layout": "IPY_MODEL_f8be8b7852a14941a0a34663ed97fefb", "shadowMap": "IPY_MODEL_9a53114f2ccb4e43abb266fcfd234ea3" } }, "26e7a24b126e4b8ea3ae854e312d2c04": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_6e74875e9c9c49f28c7196a47d38025d", "layout": "IPY_MODEL_dcc4b35d4ed2484fa1cddad72077d61a", "shadowMap": "IPY_MODEL_6c9227aab3d749f995d1d33f69ff723c" } }, "2cb51727fdc64d9c8dd3d51f50856e00": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "2fe40d95b83344398e2357b1e8839b6d": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_aba3baf755804217a29c911a0a3dad48", "layout": "IPY_MODEL_ec526564fbaf4d63a8c2eb5d8bf289de", "shadowMap": "IPY_MODEL_9777ecac05f04992bee76731e894b7c8" } }, "306e36b0a11741b78256db5927797ae4": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_9913c993bbb54ba792e9e43b81b9ff2b", "layout": "IPY_MODEL_e2ffa88c893c4893a68a1f65eaaa9580", "shadowMap": "IPY_MODEL_5a79dda3025743aa907eb55d8d5d896c" } }, "37c28d5721704b1cbcfdf4c726e5c570": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "384fffb11bda43749d80e20878cd98a3": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_59855879aa10435e8a484c8f3608b5fd", "layout": "IPY_MODEL_17b41b4ebd53435b97df8879f564939c", "shadowMap": "IPY_MODEL_e0944e1e504f4c03b113caae2a1f29f3" } }, "3cd5348602e8416f8e1bb4c844d1594e": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "TetrahedronGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "detail": 1, "radius": 10 } }, "403fe9ed70cf46afbdebe68989ba5aac": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "TorusKnotGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "radius": 20, "tube": 5 } }, "413c91b9e51446a9b39561bd167c2f08": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "42a76934674d4e9f9bf136c2d0911a7d": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "450ea16f13934f8e9da40d42ab4e159f": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_6e862bad35f9445dad6e3a54e8ddf638", "layout": "IPY_MODEL_9539766c037c4bb2a1cd01854e599f25", "shadowMap": "IPY_MODEL_9b15a6898e8c4bf99041d44b030c79a6" } }, "4579e7a0541e45dfafb2425c047e88d3": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "59855879aa10435e8a484c8f3608b5fd": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PlaneGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "height": 15, "heightSegments": 10, "width": 10, "widthSegments": 5 } }, "5a79dda3025743aa907eb55d8d5d896c": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "5a9349719e564ad6a61362bdb205a5d1": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "RingGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "innerRadius": 10, "outerRadius": 25, "phiSegments": 12 } }, "5baa319565e94d27a7e2e465c9ab85d2": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "5c5c0da203c74f70843d5e39b906023d": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "5d336e21839f4d9e813d3337ca625665": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "5df3da0e4e064392bf8498e9c6f5081f": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "6037d419d17d4c91807945429143f97d": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "6077b99ca6904d6eaa74e282f2cb5465": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "60fbefea9910495c8c5a7316d2c20e51": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "632748ab750d411dac6f1ef4c637df3f": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "6c9227aab3d749f995d1d33f69ff723c": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "6e2ac10dff094d7ea6ae4b4715a5c7d5": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "LatheBufferGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "points": [ [ 0, -10, 0 ], [ 10, -5, 0 ], [ 5, 5, 0 ], [ 0, 10, 0 ] ], "segments": 16 } }, "6e74875e9c9c49f28c7196a47d38025d": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "CircleBufferGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "radius": 10, "segments": 10, "thetaLength": 5, "thetaStart": 0.25 } }, "6e862bad35f9445dad6e3a54e8ddf638": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "IcosahedronGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "radius": 10 } }, "71cabe4c82fe416f9c9b5c491f5daebc": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_403fe9ed70cf46afbdebe68989ba5aac", "layout": "IPY_MODEL_7f1117e3a32245ecb5150e1f98e0afb0", "shadowMap": "IPY_MODEL_cd1665ac037e4494b36f86e85fe4573b" } }, "790362cd25b7436ba77b1f0393fd9b38": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "7938a617cd3542398ecc9755c0e6fde5": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "TorusGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "arc": 4.71238898038469, "radialSegments": 20, "radius": 20, "tube": 5 } }, "7b245f14747347418b1725eae0cb2d31": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "7d9dc7400d2d4684b389f770f2666bb8": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_3cd5348602e8416f8e1bb4c844d1594e", "layout": "IPY_MODEL_4579e7a0541e45dfafb2425c047e88d3", "shadowMap": "IPY_MODEL_cf73bf9199084358b0a433f0b9f897a4" } }, "7f1117e3a32245ecb5150e1f98e0afb0": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "7f36d9dc110048848365d4cbacd4f902": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "80f6e34713a84ad192872d2a431712fe": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "BoxGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "depth": 15, "depthSegments": 15, "height": 10, "heightSegments": 10, "width": 5, "widthSegments": 5 } }, "818dc99a4c784866b50bbc03e446540e": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "8777c1293f914dc0b9e6c83c750fd773": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "8a4723bba17c4ac6afd545fa77cde49e": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_cf5bd13e95ca40e9ab688baa78f6f68d", "layout": "IPY_MODEL_818dc99a4c784866b50bbc03e446540e", "shadowMap": "IPY_MODEL_5df3da0e4e064392bf8498e9c6f5081f" } }, "8a9a764939554b3ebaf59c6e21e8d03f": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_7938a617cd3542398ecc9755c0e6fde5", "layout": "IPY_MODEL_07acdb5752134a37baab5e0159385640", "shadowMap": "IPY_MODEL_790362cd25b7436ba77b1f0393fd9b38" } }, "8d1594d3d599493e8f2e7d8f70ec23a4": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_10ba353085b44857831f8749649e0cc8", "layout": "IPY_MODEL_95fb17e12e0f4250baea7704f6c55751", "shadowMap": "IPY_MODEL_0c561409633e456ab0f6b523d14e6db6" } }, "8ea697cc60b54a08b70e5fdf68d1c31a": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "SphereGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "phiLength": 4.71238898038469, "radius": 20, "thetaLength": 2.0943951023931953 } }, "9539766c037c4bb2a1cd01854e599f25": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "95fb17e12e0f4250baea7704f6c55751": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "975672966b934fe3ba4fd987611e4398": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "TorusBufferGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "radialSegments": 6, "radius": 20, "tube": 5, "tubularSegments": 20 } }, "9777ecac05f04992bee76731e894b7c8": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "98f50590e5714ad59b97e5471919035f": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "CylinderBufferGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "height": 15, "heightSegments": 10, "radiusBottom": 10, "radiusTop": 5 } }, "9913c993bbb54ba792e9e43b81b9ff2b": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "RingBufferGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "innerRadius": 10, "outerRadius": 25, "phiSegments": 12 } }, "99fa4fdcd9ea47778893746fb988b874": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_8ea697cc60b54a08b70e5fdf68d1c31a", "layout": "IPY_MODEL_7f36d9dc110048848365d4cbacd4f902", "shadowMap": "IPY_MODEL_e67e9a4fda0a48228a712336b1b61548" } }, "9a53114f2ccb4e43abb266fcfd234ea3": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "9b15a6898e8c4bf99041d44b030c79a6": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "9cf5c4439f2146db896b68f769f6350b": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "a12f652f62424e669bc4b24fa4b6a8bd": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "a45e7a99db0a496c9d336eb11189b039": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_6e2ac10dff094d7ea6ae4b4715a5c7d5", "layout": "IPY_MODEL_e4954846a24d4396b872ffbe84ea98e3", "shadowMap": "IPY_MODEL_9cf5c4439f2146db896b68f769f6350b" } }, "a931c77a045744d8a4877e12a8e1ffc0": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_e70a8422603849c295e77bb9730007a9", "layout": "IPY_MODEL_37c28d5721704b1cbcfdf4c726e5c570", "shadowMap": "IPY_MODEL_b7fdbe3641014e18a32699e24470a9f5" } }, "aba3baf755804217a29c911a0a3dad48": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "OctahedronGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "radius": 10 } }, "b7fdbe3641014e18a32699e24470a9f5": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "c0de2a9c835b4265833c5b2eccb10e8b": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PlaneBufferGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "height": 15, "heightSegments": 10, "width": 10, "widthSegments": 5 } }, "c8eef51fcb074b8295062bbd64326349": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "c9fc1ea5506544bd80bc7586211b2dba": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "CylinderGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "height": 15, "heightSegments": 10, "radiusBottom": 10, "radiusTop": 5 } }, "ca5a7cbfedcc4d8886a0317b8b2b6d2d": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_80f6e34713a84ad192872d2a431712fe", "layout": "IPY_MODEL_2cb51727fdc64d9c8dd3d51f50856e00", "shadowMap": "IPY_MODEL_6077b99ca6904d6eaa74e282f2cb5465" } }, "ca9e69f18cce471d87b9967ee630b3eb": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "ParametricGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "func": "function(u,v) { \n var x = 5 * (0.5 - u);\n var y = 5 * (0.5 - v);\n return new THREE.Vector3(10 * x, 10 * y, x*x - y*y); \n }", "slices": 5, "stacks": 10 } }, "ccdf23d809c9455a9ae28d3b987a49fe": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "cd1665ac037e4494b36f86e85fe4573b": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "cf5bd13e95ca40e9ab688baa78f6f68d": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "DodecahedronGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "radius": 10 } }, "cf73bf9199084358b0a433f0b9f897a4": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "d38ded3e6e624cc8bc54af0b3d91cbe3": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "dcc4b35d4ed2484fa1cddad72077d61a": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "e0944e1e504f4c03b113caae2a1f29f3": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "e111ee6b5bb5475b9ac442146bb63c7c": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "TorusBufferGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "radius": 100 } }, "e168ce37a6da4885839edde216216b2f": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_c0de2a9c835b4265833c5b2eccb10e8b", "layout": "IPY_MODEL_42a76934674d4e9f9bf136c2d0911a7d", "shadowMap": "IPY_MODEL_11804d1c085b496d82e6d8d96b2835b5" } }, "e2ffa88c893c4893a68a1f65eaaa9580": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "e4954846a24d4396b872ffbe84ea98e3": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "e59325cf65ac4f72b40eb6e2663c3b78": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_1e2138cc608e496bba8993dfe9a793a5", "layout": "IPY_MODEL_7b245f14747347418b1725eae0cb2d31", "shadowMap": "IPY_MODEL_02583251763f488d8c98cf0cdb57a0cc" } }, "e67e9a4fda0a48228a712336b1b61548": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WebGLShadowMapModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "" } }, "e70a8422603849c295e77bb9730007a9": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "CircleGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "radius": 10, "segments": 10, "thetaLength": 5, "thetaStart": 0.25 } }, "ec526564fbaf4d63a8c2eb5d8bf289de": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "f437728fe7ff44c79f4a30e4ebd38b26": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_c9fc1ea5506544bd80bc7586211b2dba", "layout": "IPY_MODEL_413c91b9e51446a9b39561bd167c2f08", "shadowMap": "IPY_MODEL_d38ded3e6e624cc8bc54af0b3d91cbe3" } }, "f7dbb7cab76643df8d909dfe86d060a8": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "WireframeGeometryModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module": null, "_view_module_version": "", "geometry": "IPY_MODEL_975672966b934fe3ba4fd987611e4398" } }, "f8be8b7852a14941a0a34663ed97fefb": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.0.0", "model_name": "LayoutModel", "state": {} }, "f9cc70f912644b8c976f68593e5dd93d": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_98f50590e5714ad59b97e5471919035f", "layout": "IPY_MODEL_5d336e21839f4d9e813d3337ca625665", "shadowMap": "IPY_MODEL_6037d419d17d4c91807945429143f97d" } }, "fbd0c979771f46fd97af4d5ea56dc915": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_ca9e69f18cce471d87b9967ee630b3eb", "layout": "IPY_MODEL_a12f652f62424e669bc4b24fa4b6a8bd", "shadowMap": "IPY_MODEL_5baa319565e94d27a7e2e465c9ab85d2" } }, "fe60cda4edad4c8db46f9fc0cdfb1f64": { "model_module": "jupyter-threejs", "model_module_version": "~1.0.0-beta.6", "model_name": "PreviewModel", "state": { "_model_module_version": "~1.0.0-beta.6", "_view_module_version": "~1.0.0-beta.6", "child": "IPY_MODEL_e111ee6b5bb5475b9ac442146bb63c7c", "layout": "IPY_MODEL_632748ab750d411dac6f1ef4c637df3f", "shadowMap": "IPY_MODEL_ccdf23d809c9455a9ae28d3b987a49fe" } } }, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 1 }