Main Content

simscape.multibody.GeneralExtrusion class

Package: simscape.multibody
Superclasses: simscape.multibody.Geometry

Create extruded geometry with arbitrary polygonal cross section

Description

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.

Example of an L-shaped geometry with an extrusion

To specify the dimensions of the geometry, use the CrossSection and Length properties.

Class Attributes

Sealed
true
ConstructOnLoad
true
RestrictsSubclassing
true

For information on class attributes, see Class Attributes.

Creation

Description

extrusion = simscape.multibody.GeneralExtrusion creates an extruded geometry with default values.

extrusion = simscape.multibody.GeneralExtrusion(crossSection,length) creates an extruded geometry with specified cross section and length.

Properties

expand all

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.

Cross section with a hole

Example: simscape.Value([0 0;12 0;12 4;4 4;4 16;0 16],"cm");

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Extruded distance of the geometry, specified as a simscape.Value object that represents a positive scalar with a unit of length.

Example: simscape.Value(10,"cm")

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Version History

Introduced in R2022a