turbo_moc.app.control_point_editor module#

Bridge to the installed nurbspy viewer; all geometry evaluation stays in Python.

Only this module knows about nurbspy’s prototype model/transport API. No viewer code is copied, and no per-browser geometry is stored in shared Python objects.

turbo_moc.app.control_point_editor.edits_from_model(session, model)[source]#

Preserve no-op legacy cases; store only intentionally changed XY offsets.

turbo_moc.app.control_point_editor.geometry_editor(blade, points=None, *, display=None)[source]#
turbo_moc.app.control_point_editor.initial_blade(session)[source]#
turbo_moc.app.control_point_editor.make_session(blade, inputs, identity)[source]#
turbo_moc.app.control_point_editor.nurbspy_api()[source]#

Use the declared PyPI dependency through normal Python imports.

turbo_moc.app.control_point_editor.passage_pitch(session, blade)[source]#
turbo_moc.app.control_point_editor.points_from_model(session, model)[source]#

Apply the host’s planar, locked-point, and fixed B-spline contract.

turbo_moc.app.control_point_editor.register(app)[source]#

Serve nurbspy assets and a stateless, per-request model evaluator.

turbo_moc.app.control_point_editor.use_design_passage(session, design)[source]#

Express the production midspan pitch in the native editing plane.

Annular geometry holds its physical pitch/chord fixed when the fitted contour is rescaled. Linear cascades scale the natural pitch with the blade. Reuse the production mapping instead of reimplementing blade-count formulas.