Пример #1
0
 /// <summary>
 /// 重设摄像机向量
 /// </summary>
 private void ResetCamera()//
 {
     camera        = new FrameofAxis();
     camera.ZAxis  = new Vector3(longitude, latitude);
     camera.OPoint = center + distance * new Vector3(longitude, latitude);
     camera.XAxis  = Vector3.CrossProduct(new Vector3(0, 0, 1), camera.ZAxis).UnitVector();
     camera.YAxis  = Vector3.CrossProduct(camera.ZAxis, camera.XAxis);
 }
Пример #2
0
 public PolygonSurfaceType(List <int> _vIndex, RGB_D _BaseColor, BRDFunction _BRDFunc, ref List <Vector3> _Vertex)
 {
     VIndex = new int[_vIndex.Count];
     _vIndex.CopyTo(VIndex, 0);
     Axis          = new FrameofAxis(_Vertex[VIndex[0]], _Vertex[VIndex[1]], _Vertex[VIndex[2]]);
     BaseColor     = _BaseColor;
     BRDFunc       = _BRDFunc;
     IsIlluminated = false;
 }