本文整理匯總了C#中System.Windows.Media.Media3D.RayMeshGeometry3DHitTestResult.DistanceToRayOrigin屬性的典型用法代碼示例。如果您正苦於以下問題:C# RayMeshGeometry3DHitTestResult.DistanceToRayOrigin屬性的具體用法?C# RayMeshGeometry3DHitTestResult.DistanceToRayOrigin怎麽用?C# RayMeshGeometry3DHitTestResult.DistanceToRayOrigin使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。
在下文中一共展示了RayMeshGeometry3DHitTestResult.DistanceToRayOrigin屬性的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: UpdateResultInfo
public void UpdateResultInfo(RayMeshGeometry3DHitTestResult rayMeshResult)
{
HitVisualInfo.Text = rayMeshResult.VisualHit.ToString();
HitModelInfo.Text = rayMeshResult.ModelHit.ToString();
HitMeshInfo.Text = rayMeshResult.MeshHit.ToString();
//HitMaterialInfo.Text = (rayMeshResult.ModelHit as GeometryModel3D).Material.GetType().Name;
//HitMaterialBrushInfo.Text = ((rayMeshResult.ModelHit as GeometryModel3D).Material as DiffuseMaterial).Brush.ToString();
HitDistanceInfo.Text = rayMeshResult.DistanceToRayOrigin.ToString();
Vertex1Info.Text = (rayMeshResult.VertexWeight1 * 100) + "%";
Vertex2Info.Text = (rayMeshResult.VertexWeight2 * 100) + "%";
Vertex3Info.Text = (rayMeshResult.VertexWeight3 * 100) + "%";
}
開發者ID:.NET開發者,項目名稱:System.Windows.Media.Media3D,代碼行數:12,代碼來源:RayMeshGeometry3DHitTestResult.DistanceToRayOrigin