Smith.Result (Smith v0.1.0)

Copy Markdown View Source

An evaluated shape and its BREP content hash.

:shape is an OCEx.Shape for native queries, and :revision is the lowercase SHA-256 hash of its serialized BREP. A result may hold an edge, wire, face, solid, or compound; it does not necessarily describe a printable part.

Pass the result to Smith.export/3 or Smith.Kino.render/2. Treat the fields as read-only. Export checks the shape against its revision.

The revision identifies serialized geometry, not design intent or feature history. Equal-looking geometry can have different hashes, and hashes are not promised stable across OCCT versions or platforms.

Summary

Types

t()

@type t() :: %Smith.Result{revision: String.t(), shape: OCEx.Shape.t()}