How tudelft3d/val3dity works
Main Components
a. Input Processing Layer
• Supported input formats (CityJSON, OBJ, OFF, IndoorGML, etc.)
• Input validation components
• File parsing modules
b. Core Validation Engine
• Geometry primitive processors
• ISO19107 validation rules
• Topological validation components
• Error detection system
c. Output Generation Layer
• Validation report generator
• Error code mapping
• Output formatters
Key Architectural Elements
a. Primary Components:
[Input Files] → [Input Parser] → [Validation Engine] → [Report Generator] → [Output Report]
b. Validation Engine Details:
[Geometry Primitives]
• ↓
[Validation Rules]
• ↓
[Error Detection]
• ↓
[Error Classification]
Important Relationships
a. Core Classes (from src/):
[Primitive] ←→ [Surface]
• ↓ ↓
[Solid] ←→ [CompositeSurface]
• ↓
[MultiSolid/CompositeSolid]
b. Validation Flow:
[Input Parser] → [GeometryTemplate] → [Primitive Validation]
• ↓
• [Topological Validation]
• ↓
• [Error Collection]
Implementation Details
a. Core Components:
[Input Handlers]
• CityJSON Parser
• OBJ Parser
• IndoorGML Parser
• ↓
[Validation Core]
• Primitive Validators
• Shell Validators
• Topological Validators
• ↓
[Output Handlers]
• Report Generator
• Error Classifier
Additional Elements
• Version information and supported standards
• External tool integration (viz3dity)
• Error code reference (as shown in the documentation)