McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; ESS Niels Bohr Institute DTU Physics

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding

Download
 Components

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)


McStas: Text

[ Identification | Description | Input parameters | Links ]

The Text Component

Release: McStas 3.9 Draw a text

Identification

  • Author: Emmanuel Farhi
  • Origin: SOLEIL
  • Date: Oct 10, 2026

Description

A text with given size and orientation. The text is drawn in upper letters.

Example: Text(text="SOLEIL", size=0.5, plane="XY")

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
textstrText to draw.
sizemSize of text.0.5
planestr"XY","YZ",or "XZ""XY"
pen_thickness1Stroke diameter as fraction of text size. 0 draws thin lines, >0 draws each stroke as a cylinder with spherical joints.0.1
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


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

Generated on mcstas 3.10.0


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