修复bug和新增部分功能
This commit is contained in:
@@ -3,7 +3,6 @@ using System.Diagnostics;
|
||||
|
||||
using Autodesk.Revit.DB;
|
||||
|
||||
using JetBrains.Annotations;
|
||||
|
||||
using OfficeOpenXml.FormulaParsing.Excel.Functions.Text;
|
||||
|
||||
@@ -149,7 +148,6 @@ public static class SpatialAssist
|
||||
/// <summary>创建一个新的实体,它是输入实体的副本</summary>
|
||||
/// <param name="solid">要复制的输入实体</param>
|
||||
/// <returns>新的实体</returns>
|
||||
[Pure]
|
||||
public static Solid Clone(this Solid solid)
|
||||
{
|
||||
return SolidUtils.Clone(solid);
|
||||
@@ -159,11 +157,10 @@ public static class SpatialAssist
|
||||
/// <param name="solid">要转换的输入实体</param>
|
||||
/// <param name="transform">变换(必须是保角变换)</param>
|
||||
/// <returns>新的实体</returns>
|
||||
/// <exception cref="T:Autodesk.Revit.Exceptions.ArgumentOutOfRangeException">
|
||||
/// <exception cref="Command:Autodesk.Revit.Exceptions.ArgumentOutOfRangeException">
|
||||
/// 变换不保形。
|
||||
/// 或变换的比例为负或零
|
||||
/// </exception>
|
||||
[Pure]
|
||||
public static Solid CreateTransformed(this Solid solid, Transform transform)
|
||||
{
|
||||
return SolidUtils.CreateTransformed(solid, transform);
|
||||
@@ -431,13 +428,13 @@ public static class SpatialAssist
|
||||
public static List<List<Curve>> ToCurveLoops(List<Curve> curves)
|
||||
{
|
||||
|
||||
List<List<Curve>> list = new();
|
||||
List<List<Curve>> list = [];
|
||||
while (curves.Any())
|
||||
{
|
||||
_curvesSorted = new()
|
||||
{
|
||||
_curvesSorted =
|
||||
[
|
||||
curves[0]
|
||||
};
|
||||
];
|
||||
if (!curves[0].IsBound)
|
||||
{
|
||||
curves.Remove(curves[0]);
|
||||
@@ -1382,10 +1379,9 @@ public static class SpatialAssist
|
||||
/// </remarks>
|
||||
/// <param name="solid">The solid</param>
|
||||
/// <returns>分割实体几何图形</returns>
|
||||
/// <exception cref="T:Autodesk.Revit.Exceptions.InvalidOperationException">
|
||||
/// <exception cref="Command:Autodesk.Revit.Exceptions.InvalidOperationException">
|
||||
/// 分割实体几何体失败
|
||||
/// </exception>
|
||||
[Pure]
|
||||
public static IList<Solid> SplitVolumes(this Solid solid)
|
||||
{
|
||||
return SolidUtils.SplitVolumes(solid);
|
||||
@@ -1409,10 +1405,10 @@ public static class SpatialAssist
|
||||
/// 与输入实体的边界成分或输入壳体的成分相对应的三角形结构
|
||||
/// 输入实体或输入壳体的分量
|
||||
/// </returns>
|
||||
/// <exception cref="T:Autodesk.Revit.Exceptions.ArgumentException">
|
||||
/// <exception cref="Command:Autodesk.Revit.Exceptions.ArgumentException">
|
||||
/// solidOrShell 对三角剖分无效(例如,它不包含任何面)
|
||||
/// </exception>
|
||||
/// <exception cref="T:Autodesk.Revit.Exceptions.InvalidOperationException">
|
||||
/// <exception cref="Command:Autodesk.Revit.Exceptions.InvalidOperationException">
|
||||
/// 无法对实体或外壳进行三角测量
|
||||
/// </exception>
|
||||
public static TriangulatedSolidOrShell TessellateSolidOrShell(this Solid solid, SolidOrShellTessellationControls tessellationControls)
|
||||
|
||||
Reference in New Issue
Block a user