Main Content

simscape.multibody.SimpleVisualProperties Class

Namespace: simscape.multibody
Superclasses: simscape.multibody.VisualProperties

Specify simple visual properties

Since R2022a

Description

Use an object of the simscape.multibody.SimpleVisualProperties class to specify only the color and opacity of a rendered object. To specify additional visual properties, use the simscape.multibody.AdvancedVisualProperties class.

Class Attributes

Sealed
true
ConstructOnLoad
true
RestrictsSubclassing
true

For information on class attributes, see Class Attributes.

Creation

Description

svis = simscape.multibody.SimpleVisualProperties creates a simple visual properties object with default values.

svis = simscape.multibody.SimpleVisualProperties(color) creates a simple visual properties object with the specified color.

svis = simscape.multibody.SimpleVisualProperties(color,opacity) creates a simple visual properties object with the specified color and opacity.

Properties

expand all

RGB color of the rendered object, specified as a 3-by-1 or 1-by-3 vector with values in the range of 0 to 1.

Example: [0.50 1.00 0.83]

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Data Types: double

Opacity of the rendered object, specified as a scalar in the range of 0 to 1. A scalar of 0 corresponds to completely transparent, and a scalar of 1 corresponds to completely opaque.

Example: 0.5

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Data Types: double

Version History

Introduced in R2022a