How paulo-pagliosa/ds works
Ds is a C++ graphics library, accompanied by Ds-Vis for scientific visualization and demo applications. The main user workflow is creating an application window, building or loading scene geometry, and rendering it; Ds-Vis adds dataset sources, filters, and rendering sinks. The graph also preserves the documented spatial, scene-graph, ray-tracing, CUDA, and particle capabilities. Several implementation details are unsampled, so their links are omitted or marked unverified rather than inferred from names alone.
Main entry points: SceneObject.cpp Scene Graph · Application.cpp Application Runtime · RayTracer.cpp Ray Tracing Demo · TriCellMeshMapper.cpp Mesh Mapper
Components 21
Application Runtime
- Application Runtime
cg/src/graphics/Application.cpp - Graphics Window
cg/include/graphics/GLWindow.h - Dear ImGui
cg/externals/src/imgui_draw.cpp
Scenes and Rendering
- Scene Graph
cg/src/graph/SceneObject.cpp - Scene Window
cg/src/graph/SceneWindow.cpp - OpenGL Rendering
cg/src/graphics/GLRenderer.cpp
Geometry and Data
- Core Containers
cg/include/core - Math Types
cg/include/math - Spatial Structures
cg/include/geometry - Triangle Mesh
cg/src/geometry/TriangleMesh.cpp
Scientific Visualization
- Visualization Datasets
cgvis/include/TriCellMesh.h - Visualization Processes
cgvis/include/Filter.h - Mesh Reader
cgvis/src/TriCellMeshReader.cpp - Mesh Mapper
cgvis/src/TriCellMeshMapper.cpp - Visualization Scene
cgvis/src/SceneWindow.cpp
Demos and Extensions
- Ray Tracing Demo
apps/cgdemo/RayTracer.cpp - Scene File I/O
apps/cgdemo/SceneWriter.cpp - Scene Parser
apps/cgdemo/reader - CUDA Support
cgcuda/include/CUDAHelper.h - Particle Rendering
apps/particles/src/graphics/GLParticleRenderer.cpp
Other components
- Application User
Connections 21
- Application User → Application Runtime: starts
README.md - Application Runtime → Graphics Window: runs window
cg/src/graphics/Application.cpp - Application Runtime → Ray Tracing Demo: launches demo
- Application User → Scene Graph: builds scene
README.md - Scene Graph → OpenGL Rendering: renders scene
README.md - Math Types → Scene Graph: transforms objects
README.md - Spatial Structures → Triangle Mesh: accelerates queries
- Triangle Mesh → Scene Graph: provides geometry
README.md - Scene Window → Scene Graph: manages scene
- Ray Tracing Demo → Scene Parser: reads scenes
- Ray Tracing Demo → Scene File I/O: writes scenes
- Application User → Mesh Reader: loads data
README.md - Mesh Reader → Visualization Datasets: produces dataset
- Visualization Datasets → Visualization Processes: feeds pipeline
README.md - Visualization Processes → Mesh Mapper: transforms input
README.md - Mesh Mapper → OpenGL Rendering: renders mesh
cgvis/src/TriCellMeshMapper.cpp - Visualization Scene → Mesh Mapper: hosts actors
- Core Containers → Spatial Structures: supports storage
cg/include/geometry/GridBase.h - Application User → CUDA Support: uses acceleration
- Application User → Particle Rendering: runs demo
- Graphics Window → Dear ImGui: draws interface