On this page

Cylinder

from noon import Cylinder

Source-derived class. Host availability is not inferred from this listing. See reference scope.

Bases: Surface. Declared members follow; inherited and dynamically attached members are not expanded.

Oriented Cylinder whose side and optional Circle ends publish together.

Cylinder.__init__

Cylinder.__init__(self, radius=1, height=2, direction=(0, 0, 1), v_range=(0, 2 * math.pi), show_ends=True, resolution=(24, 24), fill_color=_base.BLUE_D, fill_opacity=1, checkerboard_colors=_DEFAULT_CHECKERBOARD, stroke_width=0.5, shade_in_3d=True, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
radiuspositional or keywordNot annotated1
heightpositional or keywordNot annotated2
directionpositional or keywordNot annotated(0, 0, 1)
v_rangepositional or keywordNot annotated(0, 2 * math.pi)
show_endspositional or keywordNot annotatedTrue
resolutionpositional or keywordNot annotated(24, 24)
fill_colorpositional or keywordNot annotated_base.BLUE_D
fill_opacitypositional or keywordNot annotated1
checkerboard_colorspositional or keywordNot annotated_DEFAULT_CHECKERBOARD
stroke_widthpositional or keywordNot annotated0.5
shade_in_3dpositional or keywordNot annotatedTrue
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration