Source code for pythreejs.helpers.VertexNormalsHelper_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.Object3D import Object3D

from ..core.Object3D import Object3D

[docs]@register class VertexNormalsHelper(Object3D): """VertexNormalsHelper Autogenerated by generate-wrappers.js See https://threejs.org/docs/#api/helpers/VertexNormalsHelper """ def __init__(self, object=None, size=1, color="#ffff00", linewidth=1, **kwargs): kwargs['object'] = object kwargs['size'] = size kwargs['color'] = color kwargs['linewidth'] = linewidth super(VertexNormalsHelper, self).__init__(**kwargs) _model_name = Unicode('VertexNormalsHelperModel').tag(sync=True) object = Instance(Object3D, allow_none=True).tag(sync=True, **widget_serialization) size = CFloat(1, allow_none=False).tag(sync=True) color = Color("#ffff00", allow_none=False).tag(sync=True) linewidth = CFloat(1, allow_none=False).tag(sync=True) type = Unicode("VertexNormalsHelper", allow_none=False).tag(sync=True)
if six.PY3: import inspect # Include explicit signature since the metaclass screws it up VertexNormalsHelper.__signature__ = inspect.signature(VertexNormalsHelper.__init__)