COPYEVAL(nged)

Creates a new primitive object called new_ primitive by applying the transformation matrices accumulated along the path_to_old_primitive to the leaf primitive shape object at the end of the path…

πŸ“… published 7.44.0, from nixpkgs unstable

✨ COPYEVAL(nged) ✨

okay so bestie, welcome to the copyeval page from the BRL-CAD User Commands manual πŸ’… this one's short and sweet and honestly kind of a flex β€” let's get into it 🫢


🌸 NAME 🌸

copyeval β€” creates a new primitive object called new_primitive by applying the transformation matrices accumulated along the path_to_old_primitive to the leaf primitive shape object at the end of the path, and saving the result under the name new_primitive. ✨


πŸŽ€ SYNOPSIS πŸŽ€

copyeval {new_primitive path_to_old_primitive}

πŸ¦‹ DESCRIPTION πŸ¦‹

so. objects in a BRL-CAD model are stored as Boolean trees (combinations), and the members of those are either primitive shapes or other Boolean trees. every single member has a transformation matrix associated with it. iconic arrangement, honestly πŸ‘‘

this is what lets a primitive be a member of a combination, and that combination be a member of another combination, and so on, and so on, forever and ever, iykyk 🌈

when a combination gets displayed, the transformation matrices are applied to its members and passed down through the combinations all the way to the leaf (primitive shape) level. and then that accumulated transformation matrix gets applied to the primitive before it's drawn on the screen. the whole vibe check happens right before your eyes ✨

so what does copyeval actually do? it creates a new primitive object called new_primitive by applying the transformation matrices accumulated along the path_to_old_primitive to the leaf primitive shape object at the end of the path, and saves the result under the name new_primitive. literally exactly what it says on the tin πŸ’–

⚠️ heads up bestie: the path_to_old_primitive must be a legitimate path that ends with a primitive shape. no cap. if it doesn't, that's not a copyeval situation 🫢

πŸ”₯ EXAMPLES πŸ”₯

the example shows the use of the copyeval command to create a new primitive by applying the transformation matrices along the path to the old primitive πŸ‘‘

⭐ Example 1. Create a new primitive object by applying the transformation matrices along the path to the old primitive.

mged>copyeval shapeb comb1/comb2/comb3/shapea

creates shapeb from shapea by applying the accumulated transformation matrices from the path comb1/comb2/comb3. ate and left no crumbs πŸ’…


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team 🧚


πŸ’€ BUG REPORTS πŸ’€

reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org πŸ“§ (they want to know, fr fr πŸ™ˆ)


k bye bestie, go copy some evals πŸ’œ

β€” with love, the BRL-CAD girlies, from the COPYEVAL(nged) era πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from