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β¦
β¨ 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
- 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