Code Monkey home page Code Monkey logo

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 section describes how to build a 3D model of the CMS detector with the 2017 geometry.

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 [email protected]:SketchUpCMS/SketchUpCMS.git
cd SketchUpCMS
git clone [email protected]: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.

sketchupcms's Projects

gratr icon gratr

Import of GRATR (GRAph Theory in Ruby) (version 0.5.1; svn rev 38; 20080616) with some minor fixes for ruby 1.9.

sketchupcms icon sketchupcms

3D models of the CMS detector and events in SketchUp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.