import six
from ipywidgets import Widget, DOMWidget, widget_serialization, Color, register
from traitlets import (
Unicode, Int, CInt, Instance, ForwardDeclaredInstance, This, Enum,
Tuple, List, Dict, Float, CFloat, Bool, Union, Any,
)
from .._base.Three import ThreeWidget
from ..enums import *
from ..traits import *
from ..core.BaseGeometry_autogen import BaseGeometry
[docs]@register
class SphereGeometry(BaseGeometry):
"""SphereGeometry
Autogenerated by generate-wrappers.js
See https://threejs.org/docs/#api/geometries/SphereGeometry
"""
def __init__(self, radius=1, widthSegments=8, heightSegments=6, phiStart=0, phiLength=6.283185307179586, thetaStart=0, thetaLength=3.141592653589793, **kwargs):
kwargs['radius'] = radius
kwargs['widthSegments'] = widthSegments
kwargs['heightSegments'] = heightSegments
kwargs['phiStart'] = phiStart
kwargs['phiLength'] = phiLength
kwargs['thetaStart'] = thetaStart
kwargs['thetaLength'] = thetaLength
super(SphereGeometry, self).__init__(**kwargs)
_model_name = Unicode('SphereGeometryModel').tag(sync=True)
radius = CFloat(1, allow_none=False).tag(sync=True)
widthSegments = CInt(8, allow_none=False).tag(sync=True)
heightSegments = CInt(6, allow_none=False).tag(sync=True)
phiStart = CFloat(0, allow_none=False).tag(sync=True)
phiLength = CFloat(6.283185307179586, allow_none=False).tag(sync=True)
thetaStart = CFloat(0, allow_none=False).tag(sync=True)
thetaLength = CFloat(3.141592653589793, allow_none=False).tag(sync=True)
type = Unicode("SphereGeometry", allow_none=False).tag(sync=True)
if six.PY3:
import inspect
# Include explicit signature since the metaclass screws it up
SphereGeometry.__signature__ = inspect.signature(SphereGeometry.__init__)