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: 19.00.00
Syntax
C#
public static bool TryGet(
	Visual visual,
	out MechanismAspect mechanism,
	out KinematicLink link
)

Parameters

visual  Visual
The visual.
mechanism  MechanismAspect
The mechanism for the specified visual (or null).
link  KinematicLink
The link for the specified visual (or null).

Return Value

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