C# 클래스 MapAround.Extensions.Surfaces.ShadedReliefBuilder

Builds equally illuminated areas of 2.5D-surface.
파일 보기 프로젝트 열기: gkrsu/maparound.core

공개 메소드들

메소드 설명
BuildShadedRelief ( IEnumerable surfacePoints, double lightX, double lightY, double lightZ, double zFactor, int luminosityLevelNumber ) : LightenedPolygon[]

Builds shaded relief.

BuildShadedRelief ( IEnumerable triangles, double lightX, double lightY, double lightZ, double zFactor, int luminosityLevelNumber ) : LightenedPolygon[]

Builds shaded relief.

GetLuminosity ( Triangle triangle, double lightX, double lightY, double lightZ, double zFactor ) : double

Calculates luminosity of the triangle.

비공개 메소드들

메소드 설명
mergeTriangles ( List polygons ) : Polygon

메소드 상세

BuildShadedRelief() 공개 메소드

Builds shaded relief.
public BuildShadedRelief ( IEnumerable surfacePoints, double lightX, double lightY, double lightZ, double zFactor, int luminosityLevelNumber ) : LightenedPolygon[]
surfacePoints IEnumerable A 3D-coordinates defining source
lightX double An X component of the light vector
lightY double A Y component of the light vector
lightZ double A Z component of the light vector
zFactor double A value at which to multiply z-values for luminosity calculation
luminosityLevelNumber int A number of resoluted luminosity levels
리턴 LightenedPolygon[]

BuildShadedRelief() 공개 메소드

Builds shaded relief.
public BuildShadedRelief ( IEnumerable triangles, double lightX, double lightY, double lightZ, double zFactor, int luminosityLevelNumber ) : LightenedPolygon[]
triangles IEnumerable An object that enumerates triangles defining surface. All triangle coordinates should be instances of the MapAround.Geometry.Coordinate3D.
lightX double An X component of the light vector
lightY double A Y component of the light vector
lightZ double A Z component of the light vector
zFactor double A value at which to multiply z-values for luminosity calculation
luminosityLevelNumber int A number of resoluted luminosity levels
리턴 LightenedPolygon[]

GetLuminosity() 공개 정적인 메소드

Calculates luminosity of the triangle.
public static GetLuminosity ( Triangle triangle, double lightX, double lightY, double lightZ, double zFactor ) : double
triangle Triangle A triangle
lightX double An X component of the light vector
lightY double A Y component of the light vector
lightZ double A Z component of the light vector
zFactor double A value at which to multiply z-values for luminosity calculation
리턴 double