x3d_semantic_check
Run semantic checks on X3D scenes to detect authoring issues beyond XSD validation, such as missing geometry, empty groups, duplicate DEFs, and invalid references. Returns a structured report of errors, warnings, and notes.
Instructions
Run semantic checks on an X3D scene beyond XSD schema validation.
Detects common authoring issues that XSD cannot catch:
- Shape nodes missing geometry or appearance
- Empty grouping nodes (Transform, Group with no children)
- Duplicate DEF names
- USE referencing non-existent DEF
- ROUTE referencing invalid DEF names, fields, or mismatched types
- Missing Viewpoint
Returns a structured report of errors, warnings, and informational notes.
Args:
x3d_source: Complete X3D XML document string or file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x3d_source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |