Main Content

simscape.multibody.RegularExtrusion Class

Namespace: simscape.multibody
Superclasses: simscape.multibody.Geometry

Create extruded geometry with regular polygonal cross section

Since R2022a

Description

Use an object of the simscape.multibody.RegularExtrusion class to represent extruded geometry with a regular polygonal cross-section. The cross-section is in the xy-plane of the reference frame whose origin is coincident with the centroid of the extruded geometry. The x-axis of the reference frame is always an axis of symmetry of the cross section, and the y-axis of the reference frame is an axis of symmetry of the cross section when the value of NumberOfSides property is even. The direction of the extrusion is along the z-axis of the reference frame.

Example of regular extrusion

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

Class Attributes

Sealed
true
ConstructOnLoad
true
RestrictsSubclassing
true

For information on class attributes, see Class Attributes.

Creation

Description

extrusion = simscape.multibody.RegularExtrusion creates a regular extruded geometry with default values.

extrusion = simscape.multibody.RegularExtrusion(ns,radius,length) creates a regular extruded geometry with the specified number of sides, radius, and length.

Properties

expand all

Number of sides of the polygonal cross section, specified as an integer in the range of 3 to 64.

Example: 5

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Data Types: Double

Radius of the circle that circumscribes the cross section, specified as a simscape.Value object that represents a positive scalar with a unit of length.

Radius of circumscribe circle

Example: simscape.Value(50,"mm")

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.

Extrusion with a line showing the length

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

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Version History

Introduced in R2022a