Skip to content
forked from kjvbrt/root2gltf

Edits for using reg-expressions

Notifications You must be signed in to change notification settings

abbyxh/root2gltf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

root2gltf

This app converts detector objects from ROOT format to glTF used by Phoenix. It is a quick hack needed to run conversion headless (e.g. in CI).

Depends on JSROOT and Three.js.

Uses also patched versions of the GLTFExporter.js from Three.js and phoenixExport.js from root_cern-To_gltf-Exporter.

Installation

After git clone run:

npm ci

Usage

To run the app in the main directory:

node . detector.root

In order to convert the geometry one needs to write a configuration file. The examples of the configuration file are provided in configs directory. Three variables are expected in the configuration file:

  • subParts names of the detector subparts to be given separate element in the phoenix menu
  • childrenToHide stems of names of the subparts to be removed
  • maxLevel maximum depth of detail

About

Edits for using reg-expressions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%