Text3D object allow users to put text on 3D model view.
Syntax Example:
Code Block | ||
---|---|---|
| ||
...
<O T="Text3D">
...
...
</O> |
A Text3D object is required to have 3 Point objects to define its location.
Example:
| |||||
To view this example in the library, see (https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&obj=objiddr21jyh49cigudkjmgma5k) |
To display a calculated value in the text, you can use the "||" symbol between statements. This will cause the expression inside the "||" to be evaluated and displayed as the final result.
Example:
| |||||
To view this example in the library, see (https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&folder=3D+Geometric+Objects&obj=objid0jagk2kdp89fa701ew9izs) |
The "Text3D" object has another special use. Using the expression "|Self.N|", the name of the project object is automatically written on the 3D object.
Example:
| |||||
To view this example in the library, see (https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&folder=3D+Geometric+Objects&obj=objidyw9whr0h5lc70h70jj64lf) |
Parameters of Text3D Object:
Label | Mandatory | Description | Example | |
---|---|---|---|---|
1 | FontSize | Yes | Font size of the text displayed in 3D view | FontSize="5" (integer or float) FontSize="H/10" (expression) |
2 | Label | Yes | Text displayed in 3D view | Label="Sample Text" |
3 | X | Yes | Location of center of text along X-axis | X="5" (integer or float) X="L/2" (expression) |
4 | Y | Yes | Location of center of text along Y-axis | Y="10" (integer or float) Y="W/2" (expression) |
5 | Z | Yes | Location of center of text along Z-axis. | Z="6" (integer or float) Z="H/2" (expression) |
6 | RX | Yes | Angle of rotation of text about X-axis | RX="1.57" (integer or float) RX="PI/4" (expression) |
7 | RY | Yes | Angle of rotation of text about Y-axis | RY="3.14" (integer or float) RY="PI" (expression) |
8 | Rz | Yes | Angle of rotation of text about Z-axis | RZ="1.57" (integer or float) RZ="PI/4" (expression) |