Skip to content

[FXC-6484] Add CADDesignIntent model and design_intent field to GeometryEntityInfo#1946

Open
andrzej-krupka wants to merge 1 commit intomainfrom
andrzej/cad-design-intent
Open

[FXC-6484] Add CADDesignIntent model and design_intent field to GeometryEntityInfo#1946
andrzej-krupka wants to merge 1 commit intomainfrom
andrzej/cad-design-intent

Conversation

@andrzej-krupka
Copy link
Copy Markdown
Contributor

@andrzej-krupka andrzej-krupka commented Mar 31, 2026

Summary

  • Add CADDesignIntent Pydantic model (design_intent.py): represents the feature tree extracted from native CAD formats (features with name, type, parameters, and child features).
  • Add design_intent field to GeometryEntityInfo: optional, populated only when the geometry was imported from a native format that exposes the feature tree.
  • Remove entity_id from BodyComponentInfo: no longer needed after per-occurrence UUID assignment is handled in CADToGeometry --instanced (compute-side change, flexcompute/compute#4412).

Test plan

  • GeometryEntityInfo serializes/deserializes with design_intent: null for STEP imports
  • GeometryEntityInfo serializes/deserializes with populated design_intent for native CAD imports
  • Existing entity_info tests pass without entity_id field

🤖 Generated with claude-flow


Note

Medium Risk
Adds a new optional design_intent payload to GeometryEntityInfo, which changes the entity-info JSON schema and could affect serialization/compatibility for geometry metadata consumers.

Overview
Introduces a new CADDesignIntent/CADFeature Pydantic model (design_intent.py) to represent native-CAD feature-tree metadata, including feature relationships, referenced/produced entity IDs, and parameter properties.

Extends GeometryEntityInfo to optionally carry this metadata via a new design_intent: Optional[CADDesignIntent] field, enabling entity-info JSON to include feature-tree context when available while remaining null for formats without it.

Written by Cursor Bugbot for commit a12ce04. This will update automatically on new commits. Configure here.

…-6484]

- Add CADDesignIntent Pydantic model (design_intent.py) representing the
  feature tree extracted from native CAD formats
- Add optional design_intent field to GeometryEntityInfo; populated only
  when the geometry was imported from a format that exposes the feature tree
- Remove entity_id from BodyComponentInfo (no longer needed after
  per-occurrence UUID assignment in CADToGeometry)

Co-Authored-By: claude-flow <ruv@ruv.net>
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant