Difference between revisions of "MGED CMD copyeval"
m |
|||
Line 1: | Line 1: | ||
[[Category:MGED|Copyeval]] | [[Category:MGED|Copyeval]] | ||
[[Category:MGED matrix commands|Copyeval]] | [[Category:MGED matrix commands|Copyeval]] | ||
+ | [[Category:MGED object generators|Copyeval]] | ||
=copyeval= | =copyeval= | ||
__TOC__ | __TOC__ |
Latest revision as of 00:07, 4 January 2010
copyeval[edit]
Contents
Syntax[edit]
- copyeval new_primitive path_to_old_ primitive
Argument(s)[edit]
- new_primitive
- Name for new primitive
- path_to_old_primitive
- Path to existing primitive
Return Value(s)[edit]
- No Return Values for this command.
Description[edit]
Objects in a BRL-CAD model are stored as Boolean trees (combinations), with the members being primitive shapes or other Boolean trees. Each member has a transformation matrix associated with it. This arrangement allows a primitive to be a member of a combination, and that combination may be a member of another combination, and so on. When a combination is displayed, the transformation matrices are applied to its members and passed down through the combinations to the leaf (primitive shape) level. The accumulated transformation matrix is then applied to the primitive before it is drawn on the screen. The "copyeval" command 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. The path_to_old_ primitive must be a legitimate path ending with a primitive shape.
Example(s)[edit]
- mged> copyeval shapeb comb1/comb2/comb3/shapea
- Create shapeb from shapea by applying the accumulated transformation matrices from the path comb1/comb2/comb3.
See Also[edit]
- No related commands.
Page Generated by David Loman on: 10/11/2007 at: 12:08:15 PM