vibesketcher.server.interfaces¶
REST routes for interfaces, stacking faults and planned extended defects (#197).
Building goes through POST /api/documents/{id}/periodic/build with a
kind: interface or kind: stacking_fault recipe (revision-checked,
recorded as an edit and undone like any build). These routes rank coincidence
cells, preview a build and plan grain boundaries or dislocations without
changing the document.
Functions
|
Classes
|
|
|
A preview reads the current document; the answer names its revision. |
|
Two parent slabs of the document and the search bounds. |
- class vibesketcher.server.interfaces.InterfaceMatchesRequest(*, bottom, top, max_area=150.0, max_strain=0.05, twist_deg=0.0, angle_tolerance_deg=0.5, top_flip=False, max_candidates=20)[source]¶
Bases:
BaseModelTwo parent slabs of the document and the search bounds.
- Parameters:
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class vibesketcher.server.interfaces.ExtendedPreviewRequest(*, recipe, structure=False)[source]¶
Bases:
BaseModelA preview reads the current document; the answer names its revision.
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].