Create extruded geometry with arbitrary polygonal cross section
Use an object of the
simscape.multibody.GeneralExtrusion class to represent
extruded geometry with an arbitrary polygonal cross-section. The cross section is in the
xy-plane of the reference frame and can have a convex or concave shape.
You can also specify a cross section with holes. The number of sides of the cross section must
be greater than two, but has no upper limit. The direction of the extrusion is along the
z-axis of the reference frame.
To specify the dimensions of the geometry, use the
For information on class attributes, see Class Attributes.
creates an extruded geometry with default values.
extrusion = simscape.multibody.GeneralExtrusion
creates an extruded geometry with specified cross section and length.
extrusion = simscape.multibody.GeneralExtrusion(
CrossSection — Cross section of extruded geometry
simscape.Value([1 1; -1 1; -1 -1; 1
-1],"m") (default) |
Cross section of the extruded geometry, specified as a
simscape.Value object that represents an N-by-2 matrix
with a unit of length. N must be greater than two.
The matrix must define a closed loop in the xy-plane. The closed loop must have no self-intersecting segments. Each row of the matrix corresponds to the coordinates of a vertex of the cross-section polygon. The vertexes must be specified in a counter-clockwise order when viewed from the positive z-axis. The polygon does not have to be centered at the origin of the reference frame or even enclose the origin, but the polygon must not be self-intersecting.
To specify a cross section with holes, you can traverse the outer boundary and all inner boundaries in a single path. The traversal of the outer boundary is in the counter-clockwise direction and the traversal of the inner boundaries is in the clockwise direction.
simscape.Value([0 0;12 0;12 4;4 4;4 16;0
Length — Extruded distance of geometry
simscape.Value(1,"m") (default) |
Extruded distance of the geometry, specified as a
simscape.Value object that represents a positive scalar with a unit of
Introduced in R2022a