Reference models in the Digital Substrate Model (DSM) language, used to demonstrate modeling patterns and exercise the dsm-jetbrains and dsm-vscode IDE plugins.
A complete graph topology system demonstrating:
- Concept definitions (
Graph,Vertex,Edge) - Attachment system for topology and visual attributes
- Attachment function pools for collaborative editing:
ModelGraph— topology editing (newVertex, newEdge, deleteSelection)ModelSelection— selection management (selectAll, deselectAll)ModelIntegrity— data integrity restoration
- Mutable operations with proper return types (
key<T>,void) - Query functions for state inspection
A rendering engine data model covering:
- Camera (depth of field, motion blur)
- Material system with inheritance (matte, mirror, multilayer)
- Lighting, textures, environment
- Sensors and timeline management
- Bezier paths, kinematics, clipping planes
These samples can be validated using dsm_util.py, distributed with the Viper DevKit.
MIT License — see LICENSE.