C# Class Terra.Greedy.GreedySubdivision

Inheritance: Subdivision
显示文件 Open project: WCell/WCell-Terrain Class Usage Examples

Public Properties

Property Type Description
Mask Terra.Greedy.FloatMask
PointStates ].PointState[

Protected Properties

Property Type Description
HeightMap Terra.Maps.Map

Public Methods

Method Description
Eval ( int x, int y ) : float
GreedyInsert ( ) : bool
GreedySubdivision ( Terra.Maps.Map map, Terra.Greedy.FloatMask mask ) : System
MaxError ( ) : float
RMSError ( ) : float
ScanTriangle ( TrackedTriangle tri ) : void
Select ( int subX, int subY ) : Edge
Select ( int subX, int subY, Triangle tri ) : Edge

Protected Methods

Method Description
AllocFace ( Edge edge ) : Triangle
ComputePlane ( Terra.Geometry.Plane plane, Triangle tri, Terra.Maps.Map map ) : void
ScanTriangleLine ( Terra.Geometry.Plane plane, int y, float x1, float x2, Terra.Greedy.Candidate candidate ) : void

Method Details

AllocFace() protected method

protected AllocFace ( Edge edge ) : Triangle
edge Edge
return Triangle

ComputePlane() protected method

protected ComputePlane ( Terra.Geometry.Plane plane, Triangle tri, Terra.Maps.Map map ) : void
plane Terra.Geometry.Plane
tri Triangle
map Terra.Maps.Map
return void

Eval() public method

public Eval ( int x, int y ) : float
x int
y int
return float

GreedyInsert() public method

public GreedyInsert ( ) : bool
return bool

GreedySubdivision() public method

public GreedySubdivision ( Terra.Maps.Map map, Terra.Greedy.FloatMask mask ) : System
map Terra.Maps.Map
mask Terra.Greedy.FloatMask
return System

MaxError() public method

public MaxError ( ) : float
return float

RMSError() public method

public RMSError ( ) : float
return float

ScanTriangle() public method

public ScanTriangle ( TrackedTriangle tri ) : void
tri TrackedTriangle
return void

ScanTriangleLine() protected method

protected ScanTriangleLine ( Terra.Geometry.Plane plane, int y, float x1, float x2, Terra.Greedy.Candidate candidate ) : void
plane Terra.Geometry.Plane
y int
x1 float
x2 float
candidate Terra.Greedy.Candidate
return void

Select() public method

public Select ( int subX, int subY ) : Edge
subX int
subY int
return Edge

Select() public method

public Select ( int subX, int subY, Triangle tri ) : Edge
subX int
subY int
tri Triangle
return Edge

Property Details

HeightMap protected_oe property

protected Map,Terra.Maps HeightMap
return Terra.Maps.Map

Mask public_oe property

public FloatMask,Terra.Greedy Mask
return Terra.Greedy.FloatMask

PointStates public_oe property

public PointState[,] PointStates
return ].PointState[