ROT_POINT(nged)
transform a point by the inverse of the current view rotation
π rot_point(nged) β the glow-up your points deserve π
okay bestie, so you know how your view in MGED gets all rotated and you're like "wait what even IS this point now"? yeah. rot_point is literally the answer. it's a BRL-CAD User Command and it's giving main character energy, ngl.
β¨ NAME β¨
rot_point β transform a point by the inverse of the current view rotation π
like, it takes a point and un-rotates it. periodt.
πΈ SYNOPSIS πΈ
rot_point x y z
rot_point "x y z"
two ways, same slay. pick your fighter π«Ά
π¦ DESCRIPTION π¦
so the rot_point command applies the inverse of the current view rotation matrix to the point you hand it, and returns the transformed point as a space-separated triplet. that's it, that's the whole vibe. β¨
your input point can come in as three separate floating-point arguments, or as a single quoted space-separated triplet β both are valid, no cap. the output is a space-separated x y z string of the resulting point coordinates.
β οΈ okay important note, bestie, do NOT sleep on this: the command applies the inverse of the view rotation matrix β not the forward rotation. this transforms a point from view-rotated space back into unrotated model space orientation, which is basically "un-rotating" the point by however much the view has been rotated. π₯
and heads up, this is distinct from model2view β that one applies the full model-to-view transform, including scale and translation. rot_point is just the rotation-inverse situation. don't mix them up, iykyk π
π EXAMPLES π
Example 1. Transform a point using three separate arguments
mged> rot_point 10 0 0
transforms the point (10, 0, 0) by the inverse of the current view rotation and returns the result as three space-separated values. iconic. π
Example 2. Transform a point using a quoted triplet
mged> rot_point "10 0 0"
equivalent to the above β the single quoted string form is accepted for scripting convenience. literally the same thing, just packaged cuter π
Example 3. Use in a scripting context
mged> set rp [rot_point 0 0 100]
stores the inverse-rotation-transformed version of (0, 0, 100) in the Tcl variable rp for use in subsequent calculations. this is the one for the coders fr fr π»β¨
π AUTHOR π
BRL-CAD Team β the legends themselves π«Ά
π¬ BUG REPORTS π¬
if you find a bug or a problem, pls don't suffer in silence β reports should be submitted via electronic mail to devs@brlcad.org π
β okay that's the whole page, bestie β go un-rotate some points and live your truth ππ
BRL-CAD Β· ROT_POINT(nged) Β· that's the version/source and date line, mwah, bye bye π
ππ¦
π¦ 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