← Về thư mục
skills/lab-hardware-cad/scripts/_common.py
- LabCadError · class · L27-L28 — class LabCadError(RuntimeError)
- eprint · function · L31-L33 — def eprint(message: str) -> None
- emit · function · L36-L41 — def emit(payload: Any, as_json: bool, text: str | None = None) -> None
- load_standards · function · L44-L49 — def load_standards() -> dict
- get_standard · function · L52-L58 — def get_standard(standard_id: str) -> dict
- require_build123d · function · L61-L71 — def require_build123d()
- sha256_of · function · L74-L79 — def sha256_of(path: Path) -> str
- _coerce · function · L82-L92 — def _coerce(value: str) -> Any
- parse_params · function · L95-L103 — def parse_params(pairs: list[str] | None) -> dict[str, Any]
- model_parameters · function · L106-L112 — def model_parameters(module) -> dict[str, Any]
- import_model · function · L115-L143 — def import_model(model_path: Path, overrides: dict[str, Any] | None = None)
- run_model · function · L146-L162 — def run_model(model_path: Path, overrides: dict[str, Any] | None = None)
- model_interfaces · function · L165-L193 — def model_interfaces(module) -> list[dict]
- normalise_interfaces · function · L196-L232 — def normalise_interfaces(declared: Any) -> list[dict]
- model_checks · function · L235-L257 — def model_checks(module) -> list[dict]
- _normalise_region · function · L263-L314 — def _normalise_region(raw: dict, index: int) -> dict
- normalise_checks · function · L317-L371 — def normalise_checks(declared: Any) -> list[dict]
- intersection_volume · function · L374-L393 — def intersection_volume(shape_a, shape_b) -> float
- _region_solids · function · L396-L424 — def _region_solids(build123d, region: dict, part_bbox) -> list
- evaluate_checks · function · L427-L455 — def evaluate_checks(part, declared: list[dict]) -> list[dict]
- format_check_result · function · L458-L483 — def format_check_result(item: dict) -> list[str]
- cylinder_census · function · L486-L553 — def cylinder_census(part) -> list[dict]
- load_shape · function · L556-L578 — def load_shape(path: Path)
- _is_valid · function · L581-L584 — def _is_valid(shape) -> bool
- shape_facts · function · L587-L618 — def shape_facts(shape) -> dict
- measure · function · L621-L638 — def measure(facts: dict, name: str, swap_xy: bool = False) -> float
- main_guard · function · L641-L650 — def main_guard(func) -> None