C# Class Universe.Physics.ConvexDecompositionDotNet.CTri

Exibir arquivo Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Public Properties

Property Type Description
mC1 float
mC2 float
mC3 float
mConcavity float
mI1 int
mI2 int
mI3 int
mNear1 float3
mNear2 float3
mNear3 float3
mNormal float3
mP1 float3
mP2 float3
mP3 float3
mPlaneD float
mProcessed int

Public Methods

Method Description
CTri ( float3 p1, float3 p2, float3 p3, int i1, int i2, int i3 ) : System
Concave ( float3 p, float &distance, float3 &n ) : bool
Facing ( CTri t ) : float
addTri ( int indices, int i1, int i2, int i3, int &tcount ) : void
addWeighted ( List list ) : void
area ( ) : float
clip ( float3 start, float3 &end ) : bool
getVolume ( ) : float
hasIndex ( int i ) : bool
planeDistance ( float3 p ) : float
raySect ( float3 p, float3 dir, float3 &sect ) : float
samePlane ( CTri t ) : bool
sharesEdge ( CTri t ) : bool

Private Methods

Method Description
DistToPt ( float3 p, float4 plane ) : float
intersect ( float3 p1, float3 p2, float3 &split, float4 plane ) : void
lineIntersectsTriangle ( float3 rayStart, float3 rayEnd, float3 p1, float3 p2, float3 p3, float3 &sect ) : bool
rayIntersectsTriangle ( float3 p, float3 d, float3 v0, float3 v1, float3 v2, float &t ) : bool

Method Details

CTri() public method

public CTri ( float3 p1, float3 p2, float3 p3, int i1, int i2, int i3 ) : System
p1 float3
p2 float3
p3 float3
i1 int
i2 int
i3 int
return System

Concave() public method

public Concave ( float3 p, float &distance, float3 &n ) : bool
p float3
distance float
n float3
return bool

Facing() public method

public Facing ( CTri t ) : float
t CTri
return float

addTri() public method

public addTri ( int indices, int i1, int i2, int i3, int &tcount ) : void
indices int
i1 int
i2 int
i3 int
tcount int
return void

addWeighted() public method

public addWeighted ( List list ) : void
list List
return void

area() public method

public area ( ) : float
return float

clip() public method

public clip ( float3 start, float3 &end ) : bool
start float3
end float3
return bool

getVolume() public method

public getVolume ( ) : float
return float

hasIndex() public method

public hasIndex ( int i ) : bool
i int
return bool

planeDistance() public method

public planeDistance ( float3 p ) : float
p float3
return float

raySect() public method

public raySect ( float3 p, float3 dir, float3 &sect ) : float
p float3
dir float3
sect float3
return float

samePlane() public method

public samePlane ( CTri t ) : bool
t CTri
return bool

sharesEdge() public method

public sharesEdge ( CTri t ) : bool
t CTri
return bool

Property Details

mC1 public_oe property

public float mC1
return float

mC2 public_oe property

public float mC2
return float

mC3 public_oe property

public float mC3
return float

mConcavity public_oe property

public float mConcavity
return float

mI1 public_oe property

public int mI1
return int

mI2 public_oe property

public int mI2
return int

mI3 public_oe property

public int mI3
return int

mNear1 public_oe property

public float3 mNear1
return float3

mNear2 public_oe property

public float3 mNear2
return float3

mNear3 public_oe property

public float3 mNear3
return float3

mNormal public_oe property

public float3 mNormal
return float3

mP1 public_oe property

public float3 mP1
return float3

mP2 public_oe property

public float3 mP2
return float3

mP3 public_oe property

public float3 mP3
return float3

mPlaneD public_oe property

public float mPlaneD
return float

mProcessed public_oe property

public int mProcessed
return int