Autodesk.Revit.DB.CylindricalSurface
是Revit API中的类,表示圆柱表面。
BaseCurve
:获取圆柱体的基本曲线。Height
:获取圆柱体的高度。CylindricalSurface
:创建一个新的圆柱体。// 获取点对象
XYZ pt1 = new XYZ(0, 0, 0);
XYZ pt2 = new XYZ(10, 0, 0);
XYZ pt3 = new XYZ(5, 0, 10);
// 创建三条线段
Line line1 = Line.CreateBound(pt1, pt2);
Line line2 = Line.CreateBound(pt2, pt3);
Line line3 = Line.CreateBound(pt3, pt1);
// 创建三条曲线对象
List<Curve> curves = new List<Curve>();
curves.Add(line1);
curves.Add(line2);
curves.Add(line3);
// 创建圆柱体对象
Autodesk.Revit.DB.CylindricalSurface cylSurf = Autodesk.Revit.DB.CylindricalSurface.CreateFromCurves(curves, 0.5);
Autodesk.Revit.DB.CylindricalSurface
类继承自Autodesk.Revit.DB.ConicalSurface
类。