Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSM Language Samples

Reference models in the Digital Substrate Model (DSM) language, used to demonstrate modeling patterns and exercise the dsm-jetbrains and dsm-vscode IDE plugins.

Documentation

Full documentation: https://docs.digitalsubstrate.io/dsm/samples/

Part of the DevKit ecosystem.

Contents

Ge/ — Graph modeling

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

Re/ — 3D rendering system (Raptor)

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

Validation

These samples can be validated using dsm_util.py — the semantic validator for .dsm files. Any DSM consumer that implements spec/dsm-json.md can also process them.

License

This project is licensed under the MIT License — see LICENSE.

About

DSM language reference samples — Graph modeling and 3D rendering examples

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors