Source code for pythreejs.geometries.SphereBufferGeometry_autogen

import six
from ipywidgets import (
    Widget, DOMWidget, widget_serialization, register
)
from ipywidgets.widgets.trait_types import TypedTuple
from traitlets import (
    Unicode, Int, CInt, Instance, ForwardDeclaredInstance, This, Enum,
    Tuple, List, Dict, Float, CFloat, Bool, Union, Any,
)

from .._base.Three import ThreeWidget
from .._base.uniforms import uniforms_serialization
from ..enums import *
from ..traits import *

from ..core.BaseBufferGeometry_autogen import BaseBufferGeometry


[docs]@register class SphereBufferGeometry(BaseBufferGeometry): """SphereBufferGeometry 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(SphereBufferGeometry, self).__init__(**kwargs) _model_name = Unicode('SphereBufferGeometryModel').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("SphereBufferGeometry", allow_none=False).tag(sync=True)
if six.PY3: import inspect # Include explicit signature since the metaclass screws it up SphereBufferGeometry.__signature__ = inspect.signature(SphereBufferGeometry.__init__)