Previous section-----Next section

Bar
2D

Bar[axis, c] generates a rectangular bar of width 2c spanning from the origin to the end of axis.
• In Modeler2D, Bar[axis, l, r] generates a rectangular bar that is asymmetrical about axis with left and right sides l and r units to either side of axis, relative to the direction of axis.
• In Modeler3D, Bar[axis, w, h] generates a rectangular bar of width 2w and height 2h.

Bar returns a list of Mathematica graphics primitives that are functions of mechanism location variables.
• In Modeler2D, Bar[axis, lorg, rorg, lend, rend] generates an asymmetrical tapered bar with lorg and rorg placing the left and right sides at the origin, and lend and rend placing the left and right sides at the end.
• In Modeler3D, Bar[axis, w+, h+, w-, h-] generates a rectangular bar that is asymmetrical about axis with the width and height in each direction specified independently.
• In Modeler3D, the reference direction of axis gives the direction in which the width of the bar is measured.
• The following option can be given:

• In Modeler3D, the following option can also be given:

• See also: Box, Facet, Tangent, Wheel.

Further Examples

Load the Modeler2D package and define a simple model.

Bar is used to draw several bars on the crank body. The absolute location of all the graphics depends on the rules returned by SolveMech.

Load the Modeler3D package and define a simple model.

Bar is used again to draw several 3D bars on the crank body.

See HelpModel2D, HelpModel3D.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information