Editing MGED CMD simulate

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 11: Line 11:
 
{|align="left"
 
{|align="left"
 
  |<pre>
 
  |<pre>
mged> units m
 
 
mged> in cube.s rpp -1 1 -1 1 -1 1
 
mged> in cube.s rpp -1 1 -1 1 -1 1
 
mged> r cube.r u cube.s
 
mged> r cube.r u cube.s
mged> attr set cube.r simulate::type region
 
 
</pre>
 
</pre>
 
|}
 
|}
 
<br style="clear: both" />
 
<br style="clear: both" />
This will create a cube primitive and a containing region. We will use the region later to apply material appearances. We also set the '''simulate::type''' attribute so that the '''simulate''' command regards all primitives within this region as one object.  
+
This will create a cube primitive and a containing region. We will use the region later to apply material appearances.
  
 
<br style="clear: both" />
 
<br style="clear: both" />
Line 27: Line 25:
 
mged> in ground.s rpp -15 15 -15 15 -1 1
 
mged> in ground.s rpp -15 15 -15 15 -1 1
 
mged> r ground.r u ground.s
 
mged> r ground.r u ground.s
mged> attr set ground.r simulate::type region
 
 
</pre>
 
</pre>
 
|}
 
|}
Line 46: Line 43:
 
{|align="left"
 
{|align="left"
 
  |<pre>
 
  |<pre>
mged> attr set cube.r simulate::angular_velocity <2.0,-1.0,3.0>
+
mged> attr set cube.r simulate::angular_velocity "<2.0, -1.0, 3.0>"
 
</pre>
 
</pre>
 
|}
 
|}
Line 62: Line 59:
  
 
To specify our simulated system we will define a combination containing both objects. This combination will be modified in-place during the simulation.
 
To specify our simulated system we will define a combination containing both objects. This combination will be modified in-place during the simulation.
We will also change the units of gravity for the simulation to be
 
acceleration in mm/s/s due to the small scale of our model.
 
 
<br>
 
<br>
 
{|align="left"
 
{|align="left"
 
  |<pre>
 
  |<pre>
 
mged> comb system.c u cube.r u ground.r
 
mged> comb system.c u cube.r u ground.r
mged> attr set system.c simulate::gravity <0,0,-9.80665>
 
 
</pre>
 
</pre>
 
|}
 
|}

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)