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.BaseGeometry_autogen import BaseGeometry
[docs]@register
class ConeGeometry(BaseGeometry):
"""ConeGeometry
Autogenerated by generate-wrappers.js
See https://threejs.org/docs/#api/geometries/ConeGeometry
"""
def __init__(self, radius=20, height=100, radialSegments=8, heightSegments=1, openEnded=False, thetaStart=0, thetaLength=6.283185307179586, **kwargs):
kwargs['radius'] = radius
kwargs['height'] = height
kwargs['radialSegments'] = radialSegments
kwargs['heightSegments'] = heightSegments
kwargs['openEnded'] = openEnded
kwargs['thetaStart'] = thetaStart
kwargs['thetaLength'] = thetaLength
super(ConeGeometry, self).__init__(**kwargs)
_model_name = Unicode('ConeGeometryModel').tag(sync=True)
radius = IEEEFloat(20, allow_none=False).tag(sync=True)
height = IEEEFloat(100, allow_none=False).tag(sync=True)
radialSegments = CInt(8, allow_none=False).tag(sync=True)
heightSegments = CInt(1, allow_none=False).tag(sync=True)
openEnded = Bool(False, allow_none=False).tag(sync=True)
thetaStart = IEEEFloat(0, allow_none=False).tag(sync=True)
thetaLength = IEEEFloat(6.283185307179586, allow_none=False).tag(sync=True)
type = Unicode("ConeGeometry", allow_none=False).tag(sync=True)
import inspect
# Include explicit signature since the metaclass screws it up
ConeGeometry.__signature__ = inspect.signature(ConeGeometry.__init__)