Class PickResult
This class contains information about the scene of the picked point.
Inheritance
System.Object
PickResult
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Engine.Core
Assembly: Fusee.Engine.Core.dll
Syntax
public class PickResult
Fields
Mesh
The mesh.
Declaration
public Mesh Mesh
Field Value
Type | Description |
---|---|
Mesh |
Model
The model matrix.
Declaration
public float4x4 Model
Field Value
Type | Description |
---|---|
float4x4 |
Node
The scene code container.
Declaration
public SceneNode Node
Field Value
Type | Description |
---|---|
SceneNode |
Projection
The projection matrix.
Declaration
public float4x4 Projection
Field Value
Type | Description |
---|---|
float4x4 |
Triangle
The index of the triangle that was picked.
Declaration
public int Triangle
Field Value
Type | Description |
---|---|
System.Int32 |
U
The barycentric u, v coordinates within the picked triangle.
Declaration
public float U
Field Value
Type | Description |
---|---|
System.Single |
V
The barycentric u, v coordinates within the picked triangle.
Declaration
public float V
Field Value
Type | Description |
---|---|
System.Single |
View
The view matrix
Declaration
public float4x4 View
Field Value
Type | Description |
---|---|
float4x4 |
Properties
CameraPos
Returns the camera position.
Declaration
public float3 CameraPos { get; }
Property Value
Type | Description |
---|---|
float3 |
ClipPos
Returns the clipping position of the model.
Declaration
public float3 ClipPos { get; }
Property Value
Type | Description |
---|---|
float3 |
ModelPos
Returns the model position.
Declaration
public float3 ModelPos { get; }
Property Value
Type | Description |
---|---|
float3 |
NormalBarycentric
Returns the barycentric normal coordinates.
Declaration
public float3 NormalBarycentric { get; }
Property Value
Type | Description |
---|---|
float3 |
NormalCenter
Returns the normal at the center of the picked triangle.
Declaration
public float3 NormalCenter { get; }
Property Value
Type | Description |
---|---|
float3 |
TriangleBarycentric
Returns the barycentric triangle coordinates.
Declaration
public float3 TriangleBarycentric { get; }
Property Value
Type | Description |
---|---|
float3 |
TriangleCenter
Returns the center of the picked triangle.
Declaration
public float3 TriangleCenter { get; }
Property Value
Type | Description |
---|---|
float3 |
UV
Declaration
public float2 UV { get; }
Property Value
Type | Description |
---|---|
float2 |
WorldPos
Returns the world position of the model.
Declaration
public float3 WorldPos { get; }
Property Value
Type | Description |
---|---|
float3 |
Methods
GetNormals(out float3, out float3, out float3)
Gets the normals at the picked triangle.
Declaration
public void GetNormals(out float3 a, out float3 b, out float3 c)
Parameters
Type | Name | Description |
---|---|---|
float3 | a | |
float3 | b | |
float3 | c |
GetTriangle(out float3, out float3, out float3)
Gets the triangles of the picked mesh.
Declaration
public void GetTriangle(out float3 a, out float3 b, out float3 c)
Parameters
Type | Name | Description |
---|---|---|
float3 | a | |
float3 | b | |
float3 | c |