C# Class Transvoxel.SurfaceExtractor.TransvoxelExtractor2

Mostrar archivo Open project: BinaryConstruct/Transvoxel-XNA

Public Methods

Method Description
PolygonizeRegularCell ( Vector3i min, Vector3f offset, Vector3i xyz, IVolumeData samples, byte lodIndex, float cellSize, IList &verts, IList &indices, RegularCache &cache ) : int
PolygonizeTransitionCell ( Vector3f offset, Vector3i origin, Vector3i localX, Vector3i localY, Vector3i localZ, int x, int y, float cellSize, byte lodIndex, byte axis, byte directionMask, IVolumeData samples, IList &verts, IList &indices, TransitionCache &cache ) : int

Private Methods

Method Description
ComputeDelta ( Vector3f v, int k, int s ) : Vector3f
HiNibble ( byte b ) : byte
Interp ( Vector3f v0, Vector3f v1, Vector3i p0, Vector3i p1, IVolumeData samples, byte lodIndex ) : Vector3f
Interp ( Vector3i v0, Vector3i v1, Vector3i p0, Vector3i p1, IVolumeData samples, byte lodIndex ) : Vector3f
LoNibble ( byte b ) : byte
PrevOffset ( byte dir ) : Vector3i
ProjectNormal ( Vector3f n, Vector3f delta ) : Vector3f
Sign ( sbyte b ) : int

Method Details

PolygonizeRegularCell() public static method

public static PolygonizeRegularCell ( Vector3i min, Vector3f offset, Vector3i xyz, IVolumeData samples, byte lodIndex, float cellSize, IList &verts, IList &indices, RegularCache &cache ) : int
min Transvoxel.Math.Vector3i
offset Transvoxel.Math.Vector3f
xyz Transvoxel.Math.Vector3i
samples IVolumeData
lodIndex byte
cellSize float
verts IList
indices IList
cache RegularCache
return int

PolygonizeTransitionCell() public static method

public static PolygonizeTransitionCell ( Vector3f offset, Vector3i origin, Vector3i localX, Vector3i localY, Vector3i localZ, int x, int y, float cellSize, byte lodIndex, byte axis, byte directionMask, IVolumeData samples, IList &verts, IList &indices, TransitionCache &cache ) : int
offset Transvoxel.Math.Vector3f
origin Transvoxel.Math.Vector3i
localX Transvoxel.Math.Vector3i
localY Transvoxel.Math.Vector3i
localZ Transvoxel.Math.Vector3i
x int
y int
cellSize float
lodIndex byte
axis byte
directionMask byte
samples IVolumeData
verts IList
indices IList
cache TransitionCache
return int