本文整理汇总了C#中IFCFile.CreateConnectionSurfaceGeometry方法的典型用法代码示例。如果您正苦于以下问题:C# IFCFile.CreateConnectionSurfaceGeometry方法的具体用法?C# IFCFile.CreateConnectionSurfaceGeometry怎么用?C# IFCFile.CreateConnectionSurfaceGeometry使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IFCFile
的用法示例。
在下文中一共展示了IFCFile.CreateConnectionSurfaceGeometry方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateConnectionSurfaceGeometry
/// <summary>
/// Create IFC connection surface geometry from an opening object.
/// </summary>
/// <param name="file">
/// The IFC file.
/// </param>
/// <param name="opening">
/// The EnergyAnalysisOpening.
/// </param>
/// <param name="offset">
/// The offset of opening.
/// </param>
/// <returns>
/// The connection surface geometry handle.
/// </returns>
static IFCAnyHandle CreateConnectionSurfaceGeometry(IFCFile file, EnergyAnalysisOpening opening)
{
Polyloop outerLoop = opening.GetPolyloop();
IList<XYZ> outerLoopPoints = outerLoop.GetPoints();
IList<IList<XYZ>> innerLoopPoints = new List<IList<XYZ>>();
IFCAnyHandle hnd = file.CreateCurveBoundedPlane(outerLoopPoints, innerLoopPoints);
IFCAnyHandle ifcOptionalHnd = IFCAnyHandle.Create();
return file.CreateConnectionSurfaceGeometry(hnd, ifcOptionalHnd);
}