Let’s use an if/then rule to define the leg position where the position is based on the Child Index. Select Leg under LegPair0 in the Model Tree and in the position parameter, enter the following:
if (child.index == 0) {
return {origin: p(0, -this.width/2
+ this.length/2, 0) }
} else {
return {origin: p(0, this.width/2 -
this.length/2, 0) }
}
You should see the Table as shown here:
To change both the model and the visualization, do the following:
•Change the load Parameter of MyTable to 300
•Switch the graphics style back to Shaded With Edges.