NMG_MOVE_V(nged)
move an NMG vertex to a new position
π
nmg_move_v β the nged manual page, but make it make sense
Hey bestie πΈ so this is nmg_move_v from the nged corner of the BRL-CAD User Commands universe, and it's honestly one of those little commands that does exactly one thing and does it slay. It moves an NMG vertex. That's it. That's the whole vibe. β¨
π¦ NAME
nmg_move_v β move an NMG vertex to a new position. Short king. Very direct. We love that for us. π
π SYNOPSIS
nmg_move_v nmg_name V x_old y_old z_old x_new y_new z_new
That's the whole thing. Nine-ish tokens, zero surprises, one literal V that you literally cannot skip (more on that in a sec π).
β¨ DESCRIPTION
Okay so picture this: you've got an NMG solid, and somewhere inside it there's a vertex that is not where you want it to be. Enter nmg_move_v. π«
The nmg_move_v command moves an existing vertex in the NMG solid nmg_name from its current model-space position (x_old, y_old, z_old) over to a brand new position (x_new, y_new, z_new). Glow-up arc, honestly.
Now, important detail, no cap: the literal token V must appear as the second argument. Not a variable, not a placeholder, the actual letter V. It's giving β¨iconicβ¨ but also it's a hard requirement so don't come for me when it doesn't work without it. π
And you need exactly six coordinate values β three for the old position and three for the new position. Not five, not seven. Six. Periodt. π―
Here's the cute part: the vertex is found by matching its stored coordinates to the (x_old, y_old, z_old) values you pass in. So you're basically going "hey, find the vertex that's right here, that's the one." Then all the edges and faces attached to that vertex get updated in place to reflect the new position. Everything moves together, main character energy, no orphaned geometry. π«Ά
π‘ Pro bestie move: run labelvert nmg_name first to display the current vertex coordinates before running this command. You do not want to be guessing coordinates like it's a vibe check β that's how you move the wrong vertex and spiral. π
Also lowkey good to know: nmg_move_v is the standalone form of the nmg <object> move V subcommand. Same move, different outfit. π
π EXAMPLES
π Example 1. Move a vertex to a new position
mged> nmg_move_v my_nmg.s V 50 100 0 50 150 25
What this does: it moves the vertex sitting at (50, 100, 0) to the new position (50, 150, 25) inside my_nmg.s. Obsessed. Look at it go. π₯
π AUTHOR
BRL-CAD Team. The blueprint. The blueprinters. π
π BUG REPORTS
Found something cursed? Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. Fr fr, tell them, they genuinely want to know. πβοΈ
πΈ okay that's the whole page, bestie β nmg_move_v from BRL-CAD, BRL-CAD User Commands, and yes the footer said BRL-CAD too, twice, because consistency is a love language. Go forth and move those vertices. ππ¦β¨
π¦ 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