from pythreejs import *
from IPython.display import display
from math import pi
BoxGeometry(
width=5,
height=10,
depth=15,
widthSegments=5,
heightSegments=10,
depthSegments=15)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
BoxBufferGeometry(
width=5,
height=10,
depth=15,
widthSegments=5,
heightSegments=10,
depthSegments=15)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
CircleGeometry(
radius=10,
segments=10,
thetaStart=0.25,
thetaLength=5.0)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
CircleBufferGeometry(
radius=10,
segments=10,
thetaStart=0.25,
thetaLength=5.0)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
CylinderGeometry(
radiusTop=5,
radiusBottom=10,
height=15,
radialSegments=6,
heightSegments=10,
openEnded=False,
thetaStart=0,
thetaLength=2.0*pi)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
CylinderBufferGeometry(
radiusTop=5,
radiusBottom=10,
height=15,
radialSegments=6,
heightSegments=10,
openEnded=False,
thetaStart=0,
thetaLength=2.0*pi)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
DodecahedronGeometry(radius=10, detail=0, _flat=True)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
# TODO:
# EdgesGeometry(...)
# TODO:
# ExtrudeGeometry(...)
IcosahedronGeometry(radius=10, _flat=True)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
LatheBufferGeometry(
points=[
[ 0, -10, 0 ],
[ 10, -5, 0 ],
[ 5, 5, 0 ],
[ 0, 10, 0 ]
],
segments=16,
phiStart=0.0,
phiLength=2.0*pi, _flat=True)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
OctahedronGeometry(radius=10, detail=0, _flat=True)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
ParametricGeometry(
func="""function(u,v) {
var x = 5 * (0.5 - u);
var y = 5 * (0.5 - v);
return new THREE.Vector3(10 * x, 10 * y, x*x - y*y);
}""",
slices=5,
stacks=10, _flat=True)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
PlaneGeometry(
width=10,
height=15,
widthSegments=5,
heightSegments=10)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
PlaneBufferGeometry(
width=10,
height=15,
widthSegments=5,
heightSegments=10)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
# TODO
# PolyhedronGeometry(...)
# TODO: issues when radius is 0...
RingGeometry(
innerRadius=10,
outerRadius=25,
thetaSegments=8,
phiSegments=12,
thetaStart=0,
thetaLength=6.283185307179586)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
# TODO: issues when radius is 0...
RingBufferGeometry(
innerRadius=10,
outerRadius=25,
thetaSegments=8,
phiSegments=12,
thetaStart=0,
thetaLength=6.283185307179586)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
# TODO
# ShapeGeometry(...)
SphereGeometry(
radius=20,
widthSegments=8,
heightSegments=6,
phiStart=0,
phiLength=1.5*pi,
thetaStart=0,
thetaLength=2.0*pi/3.0)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
SphereBufferGeometry(
radius=20,
widthSegments=8,
heightSegments=6,
phiStart=0,
phiLength=1.5*pi,
thetaStart=0,
thetaLength=2.0*pi/3.0)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
TetrahedronGeometry(radius=10, detail=1, _flat=True)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
# TODO: font loading
# TextGeometry(...)
TorusGeometry(
radius=20,
tube=5,
radialSegments=20,
tubularSegments=6,
arc=1.5*pi)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
TorusBufferGeometry(radius=100)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
TorusKnotGeometry(
radius=20,
tube=5,
tubularSegments=64,
radialSegments=8,
p=2,
q=3)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
TorusKnotBufferGeometry(
radius=20,
tube=5,
tubularSegments=64,
radialSegments=8,
p=2,
q=3)
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.
# TODO: handling THREE.Curve
TubeGeometry(
path=None,
segments=64,
radius=1,
radiusSegments=8,
close=False)
WireframeGeometry(geometry=TorusBufferGeometry(
radius=20,
tube=5,
radialSegments=6,
tubularSegments=20,
arc=2.0*pi
))
Failed to display Jupyter Widget of type Preview
.
If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.
If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.