record_print_dna
Save a print outcome with full model DNA, including geometric signatures and settings, to enable cross-user learning and distinguish designs that share older signatures.
Instructions
Record a print outcome with full model DNA.
Saves the model fingerprint alongside print settings and outcome
for cross-user learning. Use ``fingerprint_model`` first to
compute the fingerprint fields.
Args:
file_hash: SHA-256 hash of the model file.
geometric_signature: Geometric signature from fingerprinting.
triangle_count: Number of triangles in the model.
surface_area_mm2: Total surface area in mm^2.
volume_mm3: Model volume in mm^3.
overhang_ratio: Ratio of overhanging triangles (0.0-1.0).
complexity_score: Model complexity (0.0-1.0).
printer_model: Printer model name.
material: Material used (e.g. ``"PLA"``).
settings: Print settings dict.
outcome: ``"success"``, ``"failed"``, or ``"partial"``.
quality_grade: Grade from ``"A"`` to ``"F"`` (default ``"B"``).
failure_mode: Optional failure description.
print_time_seconds: Print duration in seconds.
geometric_signature_v2: ``fingerprint_model``'s
``geometric_signature_v2``. Pass it: it is what lets
this print be told apart from a different design that
happens to share the older signature. Omitted, the row
is stored with the older key only and can never be
separated from that design later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | Yes | ||
| material | Yes | ||
| settings | Yes | ||
| file_hash | Yes | ||
| volume_mm3 | Yes | ||
| failure_mode | No | ||
| printer_model | Yes | ||
| quality_grade | No | B | |
| overhang_ratio | Yes | ||
| triangle_count | Yes | ||
| complexity_score | Yes | ||
| surface_area_mm2 | Yes | ||
| print_time_seconds | No | ||
| geometric_signature | Yes | ||
| geometric_signature_v2 | No |