Click or drag to resize

HelperTryGet Method

Tries to detemine the mechanism and link for the specified visual.

Namespace:  Demo3D.Visuals.KJE
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public static bool TryGet(
	Visual visual,
	out MechanismAspect mechanism,
	out KinematicLink link
)

Parameters

visual
Type: Demo3D.VisualsVisual
The visual.
mechanism
Type: Demo3D.Visuals.KJEMechanismAspect
The mechanism for the specified visual (or null).
link
Type: Demo3D.Visuals.KJEKinematicLink
The link for the specified visual (or null).

Return Value

Type: Boolean
True if the mechanism and link were determined, false otherwise.
Remarks
This function is stronger than Mechanism(Visual) and Link(Visual). This function will only return true if it found a link and a mechanism for the specified visual, where the mechanism contains the found link. This guarantees that the mechanism found moves the specified visual.
See Also