本文整理汇总了C#中IFCFile.CreateCurveBoundedPlane方法的典型用法代码示例。如果您正苦于以下问题:C# IFCFile.CreateCurveBoundedPlane方法的具体用法?C# IFCFile.CreateCurveBoundedPlane怎么用?C# IFCFile.CreateCurveBoundedPlane使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IFCFile
的用法示例。
在下文中一共展示了IFCFile.CreateCurveBoundedPlane方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateConnectionSurfaceGeometry
/// <summary>
/// Creates 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, XYZ offset)
{
Polyloop outerLoop = opening.GetPolyloop();
IList<XYZ> outerLoopPoints = outerLoop.GetPoints();
List<XYZ> newOuterLoopPoints = new List<XYZ>();
foreach (XYZ point in outerLoopPoints)
{
newOuterLoopPoints.Add(point.Subtract(offset));
}
IList<IList<XYZ>> innerLoopPoints = new List<IList<XYZ>>();
IFCAnyHandle hnd = file.CreateCurveBoundedPlane(newOuterLoopPoints, innerLoopPoints);
return IFCInstanceExporter.CreateConnectionSurfaceGeometry(file, hnd, null);
}
示例2: 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);
}