コード例 #1
0
 public RectangleMeshGeometryHitTestResult(RectangleHitTestResultTreeLeaf hitTreeLeaf, DependencyObject objectHit, MeshGeometry3D meshHit, double distanceToRectangleCenter, Point barycentricHit, int[] triangleIndices)
     : base(hitTreeLeaf, objectHit, distanceToRectangleCenter)
 {
     this.meshHit       = meshHit;
     this.vertexWeight2 = barycentricHit.X;
     this.vertexWeight3 = barycentricHit.Y;
     this.vertexIndex1  = triangleIndices[0];
     this.vertexIndex2  = triangleIndices[1];
     this.vertexIndex3  = triangleIndices[2];
 }
コード例 #2
0
 public void AddLeaf(RectangleHitTestResultTreeLeaf leaf)
 {
     this.leaves.Add(leaf);
 }
コード例 #3
0
 public RectangleHitTestResult(RectangleHitTestResultTreeLeaf hitTreeLeaf, DependencyObject objectHit, double distanceToRectangleCenter)
 {
     this.hitTreeLeaf = hitTreeLeaf;
     this.objectHit   = objectHit;
     this.distanceToRectangleCenter = distanceToRectangleCenter;
 }