McXtrace logo

McXtrace - An X-ray ray-trace simulation package

Synchrotron SOLEIL DTU Physics

McXtrace

About McXtrace
 Publications
 Project Partners
 Project People
 Goal

Download
 Components

Documentation
 Manual
 Commands
 Wiki (GitHub)
 Tutorial

Mailing list

Links

Search

Code-repository (GitHub)

Report bugs (GitHub)


McXtrace: Test_mcdisplay_shapes

[ Identification | Description | Examples | Input parameters | Links ]

The Test_mcdisplay_shapes Instrument

Test instrument showing all mcdisplay drawing primitives

Identification

  • Site: Tests_other
  • Author: Peter Willendrup
  • Origin: DTU
  • Date: 20261020

Description

Places display-only components that together use every mcdisplay
primitive, to check the mcdisplay tools at --trace=1 and --trace=2:
- cone (Arm, Cone)
- box, hollow box, box tilted along (nx, ny, nz) and tilted hollow box (Shape)
- cylinder, hollow cylinder, cylinder along z and hollow cylinder along z (Shape)
- sphere (Shape)
- polyhedron from an OFF file (Shape)
- disc, annulus and circle (Disc, Annulus, Circle)

The shapes are display-only and sit beside the beam. No McXtrace component
draws polygons, but those are drawn as polyhedra at --trace=2, as covered
by the OFF file.

Example: mxdisplay-webgl-classic Test_mcdisplay_shapes.instr --trace=2 -n 20

Examples

(Test cases in bold)
  • Test: -n1e5 Detector: Mon_I=7.96e-06

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
offfilestrOFF file for the polyhedron Shape"king.off"

Links


[ Identification | Description | Examples | Input parameters | Links ]

Generated for mcxtrace 3.10.0


Last Modified: Friday, 23-Oct-2026 19:31:09 CEST
Search website mailinglist archive GitHub repos