Autodesk.Revit.DB.DirectContext3D.ProjectionMethod
是 DirectContext3D
类的一部分,用于定义 DirectContext3D
对象的视图投影方法。
Autodesk.Revit.DB.DirectContext3D.ProjectionMethod.IsPerspective
bool
Autodesk.Revit.DB.DirectContext3D.ProjectionMethod.FOV
double
Autodesk.Revit.DB.DirectContext3D.ProjectionMethod.Viewport
System.Windows.Rect
Autodesk.Revit.DB.DirectContext3D.ProjectionMethod.Clone()
Autodesk.Revit.DB.DirectContext3D.ProjectionMethod
// 创建一个DirectContext3D对象
DirectContext3D directContext = new DirectContext3D();
// 创建一个ProjectionMethod对象
ProjectionMethod projectionMethod = new ProjectionMethod();
projectionMethod.IsPerspective = true;
projectionMethod.FOV = 60;
// 将投影方法应用于DirectContext3D对象
directContext.SetProjectionMethod(projectionMethod);