CPI(nged)
Copies old_tgc(an existing TGC shape) to a new TGC shape (new_tgc), positions the new TGC such that its base vertex is coincident with the center of the top of old_tgc, and puts mged into theβ¦
π NAME π
okay bestie, welcome to the CPI(nged) page from the BRL-CAD User Commands manual β this is the cpi command, and it is so specific but honestly kind of iconic. β¨
cpi copies old_tgc (an existing TGC shape) to a new TGC shape, new_tgc, positions that new TGC so its base vertex is coincident with the center of the top of old_tgc, and then puts mged into the primitive edit state with new_tgc selected for editing. it's giving βcopy, stack, editβ energy, no cap. π
β¨ SYNOPSIS β¨
cpi {old_tgc new_tgc}
π¦ DESCRIPTION π¦
so here's the tea: cpi copies old_tgc β which is an existing TGC shape β to a new TGC shape called new_tgc. then it positions the new TGC such that its base vertex is coincident with the center of the top of old_tgc, and it puts mged into the primitive edit state with new_tgc selected for editing. literally base vertex meets center-of-top, and then you're editing the new one. π«Ά
back in the day, this command was typically used in creating models of wiring or piping runs. but plot twist: a pipe primitive has since been added to BRL-CAD to handle such requirements. so that's the lore. πΈ
πΈ EXAMPLES πΈ
the example shows the use of the cpi command to copy an existing TGC shape to a new TGC shape and position the new shape with its base vertex coincident with the center of the top of the existing shape. yes bestie, exactly that. π
π Example 1. Copy an existing TGC shape to a new TGC shape. π
mged>cpi tgc_a tgc_b
Copies tgc_a to tgc_b and translates tgc_b to the end of tgc_a. slay. π₯
π AUTHOR π
BRL-CAD Team β iconic behavior, honestly. π
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. don't be shy, bestie β they wanna know. πβ¨
source/version tag situation: BRL-CAD; page name: CPI(nged); date: not listed on this footer, so that's the whole footer tea. bye bestie π«Άππ
π¦ 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