createSteelBar
Modeling FunctionCreates a bar between two given points.
Description
With createSteelBar, you can specify the radius and the density of the bar, which will be used to compute the mass and intertial properties. A rigid body, its cm marker, and a cylinder (graphics) are created and the body created is returned.
Usage
bar = createSteelBar (ipoint, jpoint, radius=None, density=7.8e-6, **kwds)
Input Arguments
- ipoint
- The starting point of the bar.
- jpoint
- The end point of the bar.
- radius
- The radius of the bar.
- density
- The density of the bar.
- kwds
- Other properties that define the graphic entities, for example, color.
Return Value
- bar
- The rigid body created.
Usage
# Create a bar between (0,0,0) and (1,1,1)
ipoint = Point(0,0,0)
jpoint = Point(1,1,1)
radius = 0.1
density = 1e6
bar = createSteelBar(
ipoint = ipoint,
jpoint = jpoint,
radius = radius,
density = density
)