本文整理汇总了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