Surface
from noon import Surface
Source-derived class. Host availability is not inferred from this listing. See reference scope.
Bases: _Mesh3D, _compat.Group. Declared members follow; inherited and dynamically attached members are not expanded.
Sampled surface; callback values feed Rust-owned UV topology. Cairo-compatible shading retains its sampled control points as mesh appearance metadata. ``point_lit`` remains Noon-native lighting.
Surface.__init__
Surface.__init__(self, func, u_range=(0, 1), v_range=(0, 1), resolution=32, fill_color=_base.BLUE_D, fill_opacity=1, checkerboard_colors=_DEFAULT_CHECKERBOARD, stroke_color=_DEFAULT_SURFACE_STROKE, stroke_width=0.5, stroke_opacity=1, normal=None, shade_in_3d=True, point_lit=False, _analytic_factory=None, _axial_pose=None, _force_surface_family=False, _cairo_circle_caps=(), **kwargs)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
func | positional or keyword | Not annotated | No default |
u_range | positional or keyword | Not annotated | (0, 1) |
v_range | positional or keyword | Not annotated | (0, 1) |
resolution | positional or keyword | Not annotated | 32 |
fill_color | positional or keyword | Not annotated | _base.BLUE_D |
fill_opacity | positional or keyword | Not annotated | 1 |
checkerboard_colors | positional or keyword | Not annotated | _DEFAULT_CHECKERBOARD |
stroke_color | positional or keyword | Not annotated | _DEFAULT_SURFACE_STROKE |
stroke_width | positional or keyword | Not annotated | 0.5 |
stroke_opacity | positional or keyword | Not annotated | 1 |
normal | positional or keyword | Not annotated | None |
shade_in_3d | positional or keyword | Not annotated | True |
point_lit | positional or keyword | Not annotated | False |
_analytic_factory | positional or keyword | Not annotated | None |
_axial_pose | positional or keyword | Not annotated | None |
_force_surface_family | positional or keyword | Not annotated | False |
_cairo_circle_caps | positional or keyword | Not annotated | () |
kwargs | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Surface.set_fill_by_checkerboard
Surface.set_fill_by_checkerboard(self, *colors, opacity=1)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
colors | *args | Not annotated | No default |
opacity | keyword-only | Not annotated | 1 |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Surface.shift
Surface.shift(self, vector)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
vector | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Surface.rotate
Surface.rotate(self, angle, axis=(0, 0, 1), about_point=None)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
angle | positional or keyword | Not annotated | No default |
axis | positional or keyword | Not annotated | (0, 0, 1) |
about_point | positional or keyword | Not annotated | None |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Surface.scale
Surface.scale(self, factor, about_point=None)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
factor | positional or keyword | Not annotated | No default |
about_point | positional or keyword | Not annotated | None |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Surface.set_style
Surface.set_style(self, fill_color=None, fill_opacity=None, stroke_color=None, stroke_width=None, stroke_opacity=None, family=True, **kwargs)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
fill_color | positional or keyword | Not annotated | None |
fill_opacity | positional or keyword | Not annotated | None |
stroke_color | positional or keyword | Not annotated | None |
stroke_width | positional or keyword | Not annotated | None |
stroke_opacity | positional or keyword | Not annotated | None |
family | positional or keyword | Not annotated | True |
kwargs | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Surface.copy
Surface.copy(self)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Surface.set_fill
Surface.set_fill(self, color=None, opacity=None)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
color | positional or keyword | Not annotated | None |
opacity | positional or keyword | Not annotated | None |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
Surface.set_stroke
Surface.set_stroke(self, color=None, width=None, opacity=None)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
color | positional or keyword | Not annotated | None |
width | positional or keyword | Not annotated | None |
opacity | positional or keyword | Not annotated | None |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.