On this page

Mesh3D

from noon import Mesh3D

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

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

An immutable indexed mesh with an independent ordinary semantic pose.

Mesh3D.__init__

Mesh3D.__init__(self, candidate, *, color=_base.BLUE, point_lit=False)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
candidatepositional or keywordNot annotatedNo default
colorkeyword-onlyNot annotated_base.BLUE
point_litkeyword-onlyNot annotatedFalse

Return annotation: Not annotated

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

Source declaration

Mesh3D.sphere

Mesh3D.sphere(cls, radius=1, resolution=(32, 16), *, u_range=(0, 2 * math.pi), v_range=(0, math.pi), **options)

Decorators: classmethod

ParameterKindAnnotationDefault
clspositional or keywordNot annotatedNo default
radiuspositional or keywordNot annotated1
resolutionpositional or keywordNot annotated(32, 16)
u_rangekeyword-onlyNot annotated(0, 2 * math.pi)
v_rangekeyword-onlyNot annotated(0, math.pi)
options**kwargsNot annotatedNo default

Return annotation: Not annotated

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

Source declaration

Mesh3D.cube

Mesh3D.cube(cls, size=2, **options)

Decorators: classmethod

ParameterKindAnnotationDefault
clspositional or keywordNot annotatedNo default
sizepositional or keywordNot annotated2
options**kwargsNot annotatedNo default

Return annotation: Not annotated

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

Source declaration

Mesh3D.line3d

Mesh3D.line3d(cls, start=(0, 0, 0), end=(1, 0, 0), *, thickness=0.02, segments=16, **options)

Decorators: classmethod

ParameterKindAnnotationDefault
clspositional or keywordNot annotatedNo default
startpositional or keywordNot annotated(0, 0, 0)
endpositional or keywordNot annotated(1, 0, 0)
thicknesskeyword-onlyNot annotated0.02
segmentskeyword-onlyNot annotated16
options**kwargsNot annotatedNo default

Return annotation: Not annotated

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

Source declaration

Mesh3D.polyhedron

Mesh3D.polyhedron(cls, vertices, triangular_faces, **options)

Decorators: classmethod

ParameterKindAnnotationDefault
clspositional or keywordNot annotatedNo default
verticespositional or keywordNot annotatedNo default
triangular_facespositional or keywordNot annotatedNo default
options**kwargsNot annotatedNo default

Return annotation: Not annotated

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

Source declaration

Mesh3D.prism

Mesh3D.prism(cls, dimensions=(2, 2, 2), **options)

Decorators: classmethod

ParameterKindAnnotationDefault
clspositional or keywordNot annotatedNo default
dimensionspositional or keywordNot annotated(2, 2, 2)
options**kwargsNot annotatedNo default

Return annotation: Not annotated

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

Source declaration

Mesh3D.cylinder

Mesh3D.cylinder(cls, radius=1, height=2, segments=32, *, direction=(0, 0, 1), axial_offset=0, show_ends=True, v_range=(0, 2 * math.pi), **options)

Decorators: classmethod

ParameterKindAnnotationDefault
clspositional or keywordNot annotatedNo default
radiuspositional or keywordNot annotated1
heightpositional or keywordNot annotated2
segmentspositional or keywordNot annotated32
directionkeyword-onlyNot annotated(0, 0, 1)
axial_offsetkeyword-onlyNot annotated0
show_endskeyword-onlyNot annotatedTrue
v_rangekeyword-onlyNot annotated(0, 2 * math.pi)
options**kwargsNot annotatedNo default

Return annotation: Not annotated

Orient the retained local +Z cylinder after applying a local Z offset.

Source declaration

Mesh3D.cone

Mesh3D.cone(cls, radius=1, height=2, segments=32, *, direction=(0, 0, 1), axial_offset=0, show_base=True, v_range=(0, 2 * math.pi), **options)

Decorators: classmethod

ParameterKindAnnotationDefault
clspositional or keywordNot annotatedNo default
radiuspositional or keywordNot annotated1
heightpositional or keywordNot annotated2
segmentspositional or keywordNot annotated32
directionkeyword-onlyNot annotated(0, 0, 1)
axial_offsetkeyword-onlyNot annotated0
show_basekeyword-onlyNot annotatedTrue
v_rangekeyword-onlyNot annotated(0, 2 * math.pi)
options**kwargsNot annotatedNo default

Return annotation: Not annotated

Orient the retained local +Z cone after applying a local Z offset.

Source declaration

Mesh3D.torus

Mesh3D.torus(cls, major_radius=3, minor_radius=1, resolution=(32, 16), **options)

Decorators: classmethod

ParameterKindAnnotationDefault
clspositional or keywordNot annotatedNo default
major_radiuspositional or keywordNot annotated3
minor_radiuspositional or keywordNot annotated1
resolutionpositional or keywordNot annotated(32, 16)
options**kwargsNot annotatedNo default

Return annotation: Not annotated

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

Source declaration

Mesh3D.parametric

Mesh3D.parametric(cls, function, *, u_range=(0, 1), v_range=(0, 1), resolution=(32, 32), normal=None, **options)

Decorators: classmethod

ParameterKindAnnotationDefault
clspositional or keywordNot annotatedNo default
functionpositional or keywordNot annotatedNo default
u_rangekeyword-onlyNot annotated(0, 1)
v_rangekeyword-onlyNot annotated(0, 1)
resolutionkeyword-onlyNot annotated(32, 32)
normalkeyword-onlyNot annotatedNone
options**kwargsNot annotatedNo default

Return annotation: Not annotated

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

Source declaration