Du kannst ein Rectangular Pattern (Rechteckmuster) erstellen um Objekte in einer rechteckigen Anordnung zu verteilen. Du musst zwei Mengen (quantity_one, quantity_two) als Float übergeben, zwei Abstände (distance_one, distance_two) als Float übergeben, Die beiden Richtungen sind
(plane: str, quantity_one: float, quantity_two: float, distance_one: float, distance_two: float, axis_one: str, axis_two: str)
| 836 | |
| 837 | @mcp.tool() |
| 838 | def rectangular_pattern(plane: str, quantity_one: float, quantity_two: float, distance_one: float, distance_two: float, axis_one: str, axis_two: str): |
| 839 | """ |
| 840 | Du kannst ein Rectangular Pattern (Rechteckmuster) erstellen um Objekte in einer rechteckigen Anordnung zu verteilen. |
| 841 | Du musst zwei Mengen (quantity_one, quantity_two) als Float übergeben, |
| 842 | zwei Abstände (distance_one, distance_two) als Float übergeben, |
| 843 | Die beiden Richtungen sind die axen ( axis_one, axis_two) als String ("X", "Y" oder "Z") und die Ebene als String ("XY", "YZ" oder "XZ"). |
| 844 | Aus Gründen musst du distance immer mit einer 10 multiplizieren damit es in Fusion 360 stimmt. |
| 845 | """ |
| 846 | try: |
| 847 | |
| 848 | headers = config.HEADERS |
| 849 | endpoint = config.ENDPOINTS["rectangular_pattern"] |
| 850 | data = { |
| 851 | "plane": plane, |
| 852 | "quantity_one": quantity_one, |
| 853 | "quantity_two": quantity_two, |
| 854 | "distance_one": distance_one, |
| 855 | "distance_two": distance_two, |
| 856 | "axis_one": axis_one, |
| 857 | "axis_two": axis_two |
| 858 | } |
| 859 | return send_request(endpoint, data, headers) |
| 860 | |
| 861 | except requests.RequestException as e: |
| 862 | logging.error("Rectangular pattern failed: %s", e) |
| 863 | raise |
| 864 | |
| 865 | |
| 866 | @mcp.tool() |
nothing calls this directly
no test coverage detected