PTRANSLATE(nged)
translate a vector attribute of a primitive
π PTRANSLATE (nged) π
okay bestie, welcome to PTRANSLATE from the BRL-CAD User Commands lineup β it's giving β¨surgical vector editsβ¨ and honestly? iconic.
πΈ NAME πΈ
ptranslate β translate a vector attribute of a primitive π
β¨ SYNOPSIS β¨
ptranslate [-r] obj attribute "tx ty tz"
π¦ DESCRIPTION π¦
so the ptranslate command displaces a specific vector attribute of the BRL-CAD primitive obj by the translation vector (tx, ty, tz). no cap. π
you pick the attribute with a single letter or a two-letter code, and then the modified object gets written back to the database. main character behaviour tbh.
here's the cast of arguments, one by one:
-rβ optional, bestie! relative mode. the translation vector gets added to the current attribute value. without-r, the attribute is just set to the given vector directly. absolute girlboss vs. relative girlboss, pick your vibe. πobjβ the name of the primitive you're editing. path prefixes likecomb/part.sare totally accepted, iykyk; the trailing component name is what gets used. π«Άattributeβ a letter or two-letter code that selects which vector attribute of the primitive to translate (full menu down below, babe)."tx ty tz"β the translation vector, and yes it has to be one single quoted space-separated string of three floating-point values, in local units. no commas, no separate args. that's the whole vibe check. π
π Supported primitives and attributes π
the original served this as a table, but tables are not the aesthetic, so here it is as a list β every single row preserved, fr fr:
- TGC (Truncated General Cone) β attribute
horHβ translates the height vector. the cross-section vectors (A,B,C,D) get recomputed so they stay perpendicular to the new height. obsessed with the consistency. β¨ - TGC β attribute
hrorHRβ translates the height vector and redefines the reference vertex so the base stays fixed. base stays put, height moves. π - EXTRUDE β attribute
horHβ translates the extrusion direction vector. the sketch reference vectors (u_vec,v_vec) get recomputed to remain perpendicular to the new height. slay. π¦ - EXTRUDE β attribute
hrorHRβ translates the extrusion direction vector and redefines the reference vertex. π
π heads up: only TGC and EXTRUDE are currently supported. other primitive types will return an error. so don't come for this command with a random primitive and expect a glow-up β it will simply not happen, ngl.
π₯ EXAMPLES π₯
Example 1. Translate the height vector of a TGC
mged> ptranslate cone.s h "0 0 100"
displaces the height vector of the TGC primitive cone.s by 100 units in the Z direction (absolute mode, babe). the cross-section axes are recomputed so they remain perpendicular to the new height. perpendicular queen. π
Example 2. Relatively translate an extrusion direction
mged> ptranslate -r wall.s h "10 0 0"
adds (10, 0, 0) to the current extrusion direction vector of the EXTRUDE primitive wall.s. that's it, that's the whole flex. π
π AUTHOR π
BRL-CAD Team β the actual legends behind all this. π«Ά
π BUG REPORTS π
found a bug or a problem? spill the tea via electronic mail to devs@brlcad.org and let the team cook. π
πΈ mwah π that's the page β brought to you by BRL-CAD and its PTRANSLATE(nged) era. go forth and translate those vectors, bestie, and remember: local units, quoted string, only TGC and EXTRUDE. periodt. πβ¨
π¦ 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