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)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
candidate | positional or keyword | Not annotated | No default |
color | keyword-only | Not annotated | _base.BLUE |
point_lit | keyword-only | Not annotated | False |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Mesh3D.sphere
Mesh3D.sphere(cls, radius=1, resolution=(32, 16), *, u_range=(0, 2 * math.pi), v_range=(0, math.pi), **options)Decorators: classmethod
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
cls | positional or keyword | Not annotated | No default |
radius | positional or keyword | Not annotated | 1 |
resolution | positional or keyword | Not annotated | (32, 16) |
u_range | keyword-only | Not annotated | (0, 2 * math.pi) |
v_range | keyword-only | Not annotated | (0, math.pi) |
options | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Mesh3D.cube
Mesh3D.cube(cls, size=2, **options)Decorators: classmethod
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
cls | positional or keyword | Not annotated | No default |
size | positional or keyword | Not annotated | 2 |
options | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Mesh3D.line3d
Mesh3D.line3d(cls, start=(0, 0, 0), end=(1, 0, 0), *, thickness=0.02, segments=16, **options)Decorators: classmethod
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
cls | positional or keyword | Not annotated | No default |
start | positional or keyword | Not annotated | (0, 0, 0) |
end | positional or keyword | Not annotated | (1, 0, 0) |
thickness | keyword-only | Not annotated | 0.02 |
segments | keyword-only | Not annotated | 16 |
options | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Mesh3D.polyhedron
Mesh3D.polyhedron(cls, vertices, triangular_faces, **options)Decorators: classmethod
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
cls | positional or keyword | Not annotated | No default |
vertices | positional or keyword | Not annotated | No default |
triangular_faces | positional or keyword | Not annotated | No default |
options | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Mesh3D.prism
Mesh3D.prism(cls, dimensions=(2, 2, 2), **options)Decorators: classmethod
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
cls | positional or keyword | Not annotated | No default |
dimensions | positional or keyword | Not annotated | (2, 2, 2) |
options | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
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
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
cls | positional or keyword | Not annotated | No default |
radius | positional or keyword | Not annotated | 1 |
height | positional or keyword | Not annotated | 2 |
segments | positional or keyword | Not annotated | 32 |
direction | keyword-only | Not annotated | (0, 0, 1) |
axial_offset | keyword-only | Not annotated | 0 |
show_ends | keyword-only | Not annotated | True |
v_range | keyword-only | Not annotated | (0, 2 * math.pi) |
options | **kwargs | Not annotated | No default |
Return annotation: Not annotated
Orient the retained local +Z cylinder after applying a local Z offset.
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
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
cls | positional or keyword | Not annotated | No default |
radius | positional or keyword | Not annotated | 1 |
height | positional or keyword | Not annotated | 2 |
segments | positional or keyword | Not annotated | 32 |
direction | keyword-only | Not annotated | (0, 0, 1) |
axial_offset | keyword-only | Not annotated | 0 |
show_base | keyword-only | Not annotated | True |
v_range | keyword-only | Not annotated | (0, 2 * math.pi) |
options | **kwargs | Not annotated | No default |
Return annotation: Not annotated
Orient the retained local +Z cone after applying a local Z offset.
Mesh3D.torus
Mesh3D.torus(cls, major_radius=3, minor_radius=1, resolution=(32, 16), **options)Decorators: classmethod
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
cls | positional or keyword | Not annotated | No default |
major_radius | positional or keyword | Not annotated | 3 |
minor_radius | positional or keyword | Not annotated | 1 |
resolution | positional or keyword | Not annotated | (32, 16) |
options | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Mesh3D.parametric
Mesh3D.parametric(cls, function, *, u_range=(0, 1), v_range=(0, 1), resolution=(32, 32), normal=None, **options)Decorators: classmethod
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
cls | positional or keyword | Not annotated | No default |
function | positional or keyword | Not annotated | No default |
u_range | keyword-only | Not annotated | (0, 1) |
v_range | keyword-only | Not annotated | (0, 1) |
resolution | keyword-only | Not annotated | (32, 32) |
normal | keyword-only | Not annotated | None |
options | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.