Skip to content

TheQuantiser/SketchUpCMS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOI

SketchUpCMS

Ruby scripts that read detector geometries in Detector Description Language (DDL) and build 3D models of the detector in SketchUp.

Citation

  • Tai Sakuma and Thomas McCauley, "Detector and Event Visualization with SketchUp at the CMS Experiment"
    J. Phys.: Conf. Ser. 513 022032, doi:10.1088/1742-6596/513/2/022032

Quick instructions

As an example, this seciton describes how to build a 3D model of the CMS detector with the 2017 geoetmry.

Create a big XML file

First you need to create a big XML file with all CMS detector geometry.

Follow the instructions at https://github.com/SketchUpCMS/ddtoddl_cfg and create the big XML file GeometryExtended2017.xml.

Check out

Check out this repo and the graph therory library GRATR:

git clone git@github.com:SketchUpCMS/SketchUpCMS.git
cd SketchUpCMS
git clone git@github.com:SketchUpCMS/gratr.git

Copy the big XML file to the directory SketchUpCMS. For example, :

scp <username>@<address>:<path>/GeometryExtended2017.xml .

Run

Start SketchUp Pro

Open Ruby Console (Window -> Ruby Console)

Run cms_2017.rb:

load '/<some path>/SketchUpCMS/cms_2017.rb'

After the script ends, you will probaly need to zoom out to find the CMS detector.

About

3D models of the CMS detector and events in SketchUp

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%