Question

In: Computer Science

why is it often a good idea to group particular elements together in a scene. write...

why is it often a good idea to group particular elements together in a scene.
write the code in jsGraph

Solutions

Expert Solution

Let's understand a few more defnition to get exact point ,

The Scene Database

The Inventor scene database consists of information representing one or more 3D scenes. This database can contain several scene graphs. Each scene graph consists of a related set of 3D objects and attributes.

Scene Graphs

A scene graph consists of one or more nodes, each of which represents a geometry, property, or grouping object. Hierarchical scenes are created by adding nodes as children of grouping nodes, resulting in a directed acyclic graph.

Note: Although Inventor nodes are organized into graphs, Inventor has no enforced policy on how the scene database is organized. You could, for example, create your own nodes that are organized into structures that are not graphs. (See The Inventor Toolmaker for more information on extending the Open Inventor toolkit.)

Types of Nodes

A node is the fundamental element of a scene graph. It contains data and methods that define some specific 3D shape, property, or grouping. When a node is created, it is automatically inserted into the database as a root node. Usually, you connect the node to other nodes in the database to construct a hierarchy.

Nodes are divided into three basic categories:

  • Shape nodes, which represent 3D geometric objects

  • Property nodes, which represent appearance and other qualitative characteristics of the scene

  • Group nodes, which are containers that collect nodes into graphs

These categories are not strict and are used only to help you learn about Inventor classes.

Creating Nodes

Use the new operator to create nodes. For example:

SoSphere *headSphere = new SoSphere;

Creating Groups

Suppose you want to combine the transform node, the material node, and the sphere node created earlier into a single group, the “head” group for a robot object. First, create the SoGroup. Then use the addChild() method for each child node, as follows:

SoGroup *head = new SoGroup;

head->addChild(myXform); 
head->addChild(bronze); 
head->addChild(headSphere);

Related Solutions

Group 7A(17) elements are found in many compounds, but group 8A (18) elements or not. Why?
Group 7A(17) elements are found in many compounds, but group 8A (18) elements or not. Why?
Describe what a pro se action is. Is it a good idea?Why or why not?...
Describe what a pro se action is. Is it a good idea? Why or why not?(This is in relation to criminal justice)
Is unionization a good idea for nursing homes? Why or why not? If you were an...
Is unionization a good idea for nursing homes? Why or why not? If you were an administrator, how would unionized workers on your staff affect your ability to run the nursing facility? If you were a facility administrator, what measures would you take to ensure the safety of your employees?
Why do elements in group VI form -2 ions where as elements in group VII form...
Why do elements in group VI form -2 ions where as elements in group VII form -1 ions?
can you please write a good descriptive fight scene in a classroom this should include person...
can you please write a good descriptive fight scene in a classroom this should include person vs person make sure this scene is well written
Why do elements in group 4A do not form ionic bonds? Why elements of V111 A,...
Why do elements in group 4A do not form ionic bonds? Why elements of V111 A, have zero electronegativity?
Why is it a good idea to create value stream process maps?
Why is it a good idea to create value stream process maps?
Why is it not a good idea for the macro economy to cut taxes on working...
Why is it not a good idea for the macro economy to cut taxes on working Americans?
Why it might be a good or bad idea for banks to hold 100% of their...
Why it might be a good or bad idea for banks to hold 100% of their deposits? What role is there for banks in a future world of cryptocurrencies like bitcoins? Read this article as a starting point, but do some research as well to find some other perspectives. Include those in your response as well. The Bitcoin News. 08/12/2019. What is the future of cryptocurrencies?
please describe why it may not be a good idea to go after keywords that are...
please describe why it may not be a good idea to go after keywords that are more general and have a higher search volume?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT