主要内容

OrientationVectorsVisual

R2026b

Orientation vectors visual

Since R2026b

    Description

    Add-On Required: This feature requires the 3D Scenarios add-on.

    An OrientationVectorsVisual object controls the appearance of the orientation vectors for an ActorVisual object displayed in a scenario viewer.

    Creation

    When you add an actor to a scenario with open viewers, the scenario automatically creates an OrientationVectorsVisual object and stores the object in the OrientationVectors property of the ActorVisual object.

    Properties

    expand all

    Length of each orientation vector, in meters, specified as a positive scalar. The default value depends on whether the actor has a 3D model.

    • If the actor does not have a 3D model, then the default is 1.5.

    • If the actor has a 3D model, then the default scales the vectors to extend slightly beyond the 3D model.

    State of visibility, specified as "on" or "off", or as numeric or logical 1 (true) or 0 (false). A value of "on" is equivalent to true, and "off" is equivalent to false. Thus, you can use the value of this property as a logical value. The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.

    • "off" — Do not show the visual object in the viewer.

    • "on" — Show the visual object in the viewer.

    Version History

    Introduced in R2026b