On this page

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)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
funcpositional or keywordNot annotatedNo default
u_rangepositional or keywordNot annotated(0, 1)
v_rangepositional or keywordNot annotated(0, 1)
resolutionpositional or keywordNot annotated32
fill_colorpositional or keywordNot annotated_base.BLUE_D
fill_opacitypositional or keywordNot annotated1
checkerboard_colorspositional or keywordNot annotated_DEFAULT_CHECKERBOARD
stroke_colorpositional or keywordNot annotated_DEFAULT_SURFACE_STROKE
stroke_widthpositional or keywordNot annotated0.5
stroke_opacitypositional or keywordNot annotated1
normalpositional or keywordNot annotatedNone
shade_in_3dpositional or keywordNot annotatedTrue
point_litpositional or keywordNot annotatedFalse
_analytic_factorypositional or keywordNot annotatedNone
_axial_posepositional or keywordNot annotatedNone
_force_surface_familypositional or keywordNot annotatedFalse
_cairo_circle_capspositional or keywordNot annotated()
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

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

Source declaration

Surface.set_fill_by_checkerboard

Surface.set_fill_by_checkerboard(self, *colors, opacity=1)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
colors*argsNot annotatedNo default
opacitykeyword-onlyNot annotated1

Return annotation: Not annotated

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

Source declaration

Surface.shift

Surface.shift(self, vector)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
vectorpositional or keywordNot annotatedNo default

Return annotation: Not annotated

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

Source declaration

Surface.rotate

Surface.rotate(self, angle, axis=(0, 0, 1), about_point=None)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
anglepositional or keywordNot annotatedNo default
axispositional or keywordNot annotated(0, 0, 1)
about_pointpositional or keywordNot annotatedNone

Return annotation: Not annotated

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

Source declaration

Surface.scale

Surface.scale(self, factor, about_point=None)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
factorpositional or keywordNot annotatedNo default
about_pointpositional or keywordNot annotatedNone

Return annotation: Not annotated

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

Source declaration

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)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
fill_colorpositional or keywordNot annotatedNone
fill_opacitypositional or keywordNot annotatedNone
stroke_colorpositional or keywordNot annotatedNone
stroke_widthpositional or keywordNot annotatedNone
stroke_opacitypositional or keywordNot annotatedNone
familypositional or keywordNot annotatedTrue
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

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

Source declaration

Surface.copy

Surface.copy(self)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Not annotated

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

Source declaration

Surface.set_fill

Surface.set_fill(self, color=None, opacity=None)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
colorpositional or keywordNot annotatedNone
opacitypositional or keywordNot annotatedNone

Return annotation: Not annotated

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

Source declaration

Surface.set_stroke

Surface.set_stroke(self, color=None, width=None, opacity=None)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
colorpositional or keywordNot annotatedNone
widthpositional or keywordNot annotatedNone
opacitypositional or keywordNot annotatedNone

Return annotation: Not annotated

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

Source declaration