PROTATE(nged)
rotate a vector attribute of a primitive by Euler angles
π
protate (nged) π
okay bestie, welcome to the protate page from the nged manual β BRL-CAD user commands, but make it group-chat cute. We're rotating a vector attribute of a primitive by Euler angles, and it's giving geometry glow-up. β¨π
β¨ NAME β¨
protate β rotate a vector attribute of a primitive by Euler angles. π«
β¨ SYNOPSIS β¨
protate obj attribute "rx ry rz"
β¨ DESCRIPTION β¨
The protate command rotates a specific vector attribute of the BRL-CAD primitive obj by the Euler angles rx, ry, rz (in degrees). π The rotation is applied to an individual geometric attribute (a specific vector field) of the primitive rather than to the whole object. The modified object is written back to the database. πΎ
The three arguments are:
- obj β the name of the primitive to edit. May include a path prefix (e.g.
comb/part.s), in which case the trailing component name is used. Only BRLCAD-type primitives are supported; combinations are rejected. π« - attribute β a single letter identifying which vector field of the primitive to rotate. Valid attributes depend on the primitive type (see the list below π ).
"rx ry rz"β the rotation angles in degrees, as a single quoted space-separated string of three floating-point values. The rotation matrix is constructed from these Euler angles. π’
β¨ Supported primitive types and attributes β¨
- ETO (Elliptical Torus) β attribute
corC: rotate the semi-minor axis vector of the elliptical cross-section. π© - TGC (Truncated General Cone) β attribute
horH: rotate the height vector of the cone. π - EXTRUDE β attribute
horH: rotate the extrusion direction vector. π§΅ - HYP (Hyperboloid) β attribute
horH: rotate the height (axis) vector of the hyperboloid. π¦
Other primitive types are not currently supported and will return an error. π
β¨ EXAMPLES β¨
Example 1. Rotate the height vector of a TGC cone by 45Β° about Z π
mged> protate cone.s h "0 0 45"
Rotates the height vector of the TGC primitive cone.s by 45Β° about the Z axis. π―
Example 2. Rotate the cross-section axis of an ETO πΈ
mged> protate ring.s c "30 0 0"
Rotates the semi-minor axis vector of the ETO primitive ring.s by 30Β° about the X axis. π
β¨ AUTHOR β¨
BRL-CAD Team π
β¨ BUG REPORTS β¨
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. π¬
π source/version: BRL-CAD": manual: PROTATE(nged) Β· date: not listed in the original footer, so no invented date here β just the classic footer energy. π«Ά
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms