Stub-backed CPACS Behavior
The current package uses deterministic stand-ins from tigl_mcp.cpacs
and tigl_mcp.cpacs_stubs instead of requiring full TiXI/TiGL
installations.
Why this exists
Local development stays lightweight.
CI remains deterministic.
Tests can validate payload shapes and workflow contracts without native geometry dependencies.
What is intentionally simplified
Bounding boxes are derived from component index, not real geometry.
Sampling and intersections are synthetic but deterministic.
Mesh and CAD exports are format-like payloads designed for stable testing.
Utility models and parsing helpers for CPACS content.
This module offers lightweight stand-ins for TiXI/TiGL objects. The goal is to provide predictable behavior in test environments while preserving the shape of the real APIs. Geometry calculations are intentionally simplified; the focus is on producing deterministic, well-structured JSON for the MCP tools.
- class tigl_mcp.cpacs.BoundingBox(xmin, xmax, ymin, ymax, zmin, zmax)[source]
Axis-aligned bounding box.
- class tigl_mcp.cpacs.CPACSConfiguration(wings, fuselages, rotors, engines)[source]
Parsed CPACS configuration used by the MCP tools.
- class tigl_mcp.cpacs.ComponentDefinition(uid, name, index, type_name, symmetry, parameters, bounding_box)[source]
Description of a CPACS component.
- class tigl_mcp.cpacs.TiglConfiguration(cpacs_configuration, closed=False)[source]
Lightweight TiGL configuration stub.
- class tigl_mcp.cpacs.TixiDocument(xml_content, file_name=None, closed=False)[source]
Lightweight TiXI document stub.
- tigl_mcp.cpacs.build_handles(xml_content, file_name)[source]
Create TiXI/TiGL stand-ins from XML content.