Skip to content

An interactive rendering tool for bi-spatial structures for debugging purposes.

License

Notifications You must be signed in to change notification settings

ShaneCan/bispace-viewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bi-Space Viewer

A web-based viewer for bigrids (bi-spatial structures). It provides an interactive 3D environment for exploring and debugging bigrid models.

Features

  • Bigrid Generation

    • Load sample models
    • Upload custom XMI files
    • Generate grids via the bigrid-provider-service
    • Fetch from a CDO repository
  • Live Monitoring

  • 3D Navigation

    • Free-flight camera

Screenshots

Getting Started

Start the Web App:

$ nvm install node --lts
$ nvm use --lts 
$ npm install
$ npm run dev

Open the browser at: http://localhost:5173/

Press ESC to leave the 3D view and take back control.

More Functions

  • Start the bigrid-provider-service if you plan to generate grids dynamically.
  • Start the CDO server if you want to load models from a CDO repository. See here and here for example.

If these services are not running, some features may be unavailable, but the application will still start and all offline functionality will work normally.

Configuration

bigrid-provider-service

  • Change URL+Port: vite.config.ts

How to Create Bigrids?

Use:

Create your own: The signature of bigrids is very simple and their usage as well. The file parsing logic lives in BigraphGridXMLParser.js.

Dev-Notes

  • The renderer supports two bigrid encodings:
    • Single-root (1): all Locale elements share a single root.
    • Multi-root (0): each Locale is attached to its own root.
    • Moreover, the coordinates can be encoded as "outer names" or as dedicated "CO-typed nodes" (coordinate nodes).
  • The XMI parsing logic lives in BigraphGridXMLParser.js.
    It is self-contained and can be ported to other languages that need to read the same bigrid format (XMI).
  • In the UI the appropriate parser is selected by passing the desired version to fetchSampleAndRender(filename, version = 0 | 1).

License

This Open Source software is released under the Apache 2.0 license.


Copyright © 2025 The UniAgent Developers and Contributors.
(Main Developer: Dominik Grzelak)

About

An interactive rendering tool for bi-spatial structures for debugging purposes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.9%
  • HTML 16.3%
  • TypeScript 0.8%