Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
LinkedMesh Class Reference

Classes

class  LinkedTri
 
class  LinkedVert
 

Public Types

enum  MeshOption : int {
  MeshOption.None = 0, MeshOption.CalculateNormals = 1, MeshOption.CalculateBounds = 2, MeshOption.CalculateTangents = 4,
  MeshOption.Debug = 8
}
 

Public Member Functions

void ClearMesh ()
 
void ClearSelection ()
 
void ComputeNormals ()
 
void ComputeSelectionNormals ()
 
void CreateLinks ()
 
Mesh GetMesh ()
 
Mesh GetMesh (MeshOption meshOption)
 
 LinkedMesh ()
 
 LinkedMesh (Mesh baseMesh)
 
bool Raycast (Vector3 rayPosition, Vector3 rayDirection, float rayDistance, out LinkedTri hitTri, out float hitDistance, out Vector3 hitNormal)
 
void SelectMesh (Vector3 point, int triIndex, float fallOffRadius)
 
void SelectMesh (Vector3 point, LinkedTri tri, float fallOffRadius)
 
void UpdateSelection (bool selectionNormals)
 

Public Attributes

LinkedTri[] linkedTris
 
LinkedVert[] linkedVerts
 
bool meshBuilt
 
Vector3[] normals
 
List< LinkedTriselection
 
int selectionCount
 
List< LinkedVertselectionVerts
 
int selectionVertsCount
 
int triCount
 
int triIndexCount
 
int[] tris
 
Vector2[] uv
 
int vertCount
 
Vector3[] verts
 

Member Enumeration Documentation

Enumerator
None 
CalculateNormals 
CalculateBounds 
CalculateTangents 
Debug 

Constructor & Destructor Documentation

LinkedMesh.LinkedMesh ( )
inline
LinkedMesh.LinkedMesh ( Mesh  baseMesh)
inline

Member Function Documentation

void LinkedMesh.ClearMesh ( )
inline
void LinkedMesh.ClearSelection ( )
inline
void LinkedMesh.ComputeNormals ( )
inline
void LinkedMesh.ComputeSelectionNormals ( )
inline
void LinkedMesh.CreateLinks ( )
inline
Mesh LinkedMesh.GetMesh ( )
inline
Mesh LinkedMesh.GetMesh ( MeshOption  meshOption)
inline
bool LinkedMesh.Raycast ( Vector3  rayPosition,
Vector3  rayDirection,
float  rayDistance,
out LinkedTri  hitTri,
out float  hitDistance,
out Vector3  hitNormal 
)
inline
void LinkedMesh.SelectMesh ( Vector3  point,
int  triIndex,
float  fallOffRadius 
)
inline
void LinkedMesh.SelectMesh ( Vector3  point,
LinkedTri  tri,
float  fallOffRadius 
)
inline
void LinkedMesh.UpdateSelection ( bool  selectionNormals)
inline

Member Data Documentation

LinkedTri [] LinkedMesh.linkedTris
LinkedVert [] LinkedMesh.linkedVerts
bool LinkedMesh.meshBuilt
Vector3 [] LinkedMesh.normals
List<LinkedTri> LinkedMesh.selection
int LinkedMesh.selectionCount
List<LinkedVert> LinkedMesh.selectionVerts
int LinkedMesh.selectionVertsCount
int LinkedMesh.triCount
int LinkedMesh.triIndexCount
int [] LinkedMesh.tris
Vector2 [] LinkedMesh.uv
int LinkedMesh.vertCount
Vector3 [] LinkedMesh.verts

The documentation for this class was generated from the following file: