# Fan Cone Intersection Calculator AI Agent Connect

> Fan Cone Intersection Calculator handles the heavy lifting for rational polyhedral cone math. It lets your AI client perform geometric operations like finding intersections, checking if one cone sits inside another, and extracting specific structural elements like rays or faces. You can also switch between V-representation and H-representation or verify that your entire fan structure is mathematically consistent.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_GVqOZQbsEA501m51Jrc3v9PbSQc18fzEIChfu4GI/ai-agent-connect
- **Tags:** polyhedral-cones, fan-structure, algebraic-geometry, geometry-tools, rational-cones

## Description

If you are working with rational polyhedral cones, you know how tedious the manual math can be. This MCP gives your AI agent the ability to process these geometric structures directly. Instead of you manually calculating intersections or verifying fan properties, you ask your client to do it. You can use it to find the exact intersection of multiple cones or check if a specific cone is contained within another. It also handles the conversion between generators and inequalities, which is a lifesaver when you need to switch between V-representation and H-representation. Whether you need to pull out specific rays and faces or ensure your entire set of cones forms a valid fan, this tool handles the underlying computational geometry so you can focus on the higher-level analysis.

## Tools

### calculate_intersection
This tool finds the geometric intersection of multiple cones.

### check_cone_containment
Use this to determine if one cone is contained within another.

### get_cone_representation
This tool converts a cone between generators and inequalities.

### identify_cone_elements
This tool extracts specific rays or faces from a given cone.

### validate_fan_consistency
Use this to check if a set of cones forms a valid fan structure.

## Prompt Examples

**Prompt:** 
```
Check if cone_01 is contained within cone_02.
```

**Response:** 
```
Cone_01 is a face of Cone_02.
```

**Prompt:** 
```
What are the rays of cone_alpha?
```

**Response:** 
```
The rays for cone_alpha are defined by the vectors [1, 0, 0] and [0, 1, 0].
```

**Prompt:** 
```
Find the intersection of cone_A, cone_B, and cone_C.
```

**Response:** 
```
The intersection is a 1-dimensional ray defined by the generator [0, 0, 1].
```

## Capabilities

### Intersection Calculation
Your agent finds the shared geometric space between multiple cones.

### Containment Verification
Your agent checks hierarchical relationships between different cones.

### Representation Switching
Your client converts between V-representation and H-representation.

### Structural Extraction
The tool pulls specific rays or faces out of a cone's definition.

### Fan Validation
Your agent verifies that a collection of cones meets fan consistency rules.

## Use Cases

### Geometric Analysis
Use your agent to find the intersection of multiple polyhedral cones.

### Structural Verification
Check if a specific cone is a subset of another cone.

### Data Representation
Switch a cone from V-representation to H-representation for different solvers.

### Fan Integrity Checks
Ensure a set of cones satisfies the requirements to be a valid fan.

## Benefits

- Automates the conversion between generators and inequalities.
- Reduces manual errors in checking cone containment.
- Provides direct access to structural elements like rays and faces.
- Validates the mathematical integrity of entire fan structures.

## How It Works

Getting this MCP running in your workflow is straightforward.

1. Connect your preferred MCP-compatible client to Vinkius.
2. The MCP is hosted and ready to use immediately.
3. Ask your AI agent to perform a geometric operation.
4. Your agent calls the specific tool to process the math.
5. You receive the geometric result directly in your chat interface.

## Frequently Asked Questions

**What kind of cones does this MCP support?**
This MCP is designed for rational polyhedral cones within a fan structure.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client including Claude, Cursor, and Windsurf.

**How do I switch between V-representation and H-representation?**
You use the get_cone_representation tool to convert between generators and inequalities.

**Does this tool help with fan validation?**
Yes, the validate_fan_consistency tool checks if a set of cones forms a valid fan.

**How do I get the rays of a specific cone?**
You can use the identify_cone_elements tool to extract rays or faces.

**How do I verify if my set of cones is mathematically valid?**
You can use the `validate_fan_consistency` tool to check if the provided set of cone identifiers satisfies the requirements of a valid fan.

**Can I convert a cone from inequalities to generators?**
Yes, the `get_cone_representation` tool allows you to switch between generators and inequalities for any specific cone.

**What happens if I intersect two cones that do not form a valid fan?**
If the intersection is not a shared face of the input cones, the `calculate_intersection` tool will throw an error indicating the input is not a valid fan.
