样式demo

This commit is contained in:
GG Z
2025-12-28 11:47:54 +08:00
parent ceccab9abb
commit 1fd8d2ced7
65 changed files with 2369 additions and 799 deletions

View File

@@ -1,12 +1,10 @@
using Autodesk.Revit.DB;
using ShrlAlgoToolkit.Revit.Assists;
namespace ShrlAlgoToolkit.Revit.Assists;
namespace ShrlAlgoToolkit.Revit.Extensions;
public static class SpatialExtensions
{
private static readonly double _curveTolerance = 0.0025;
private static readonly double CurveTolerance = 0.0025;
/// <summary>
/// 容差
/// </summary>
@@ -117,7 +115,7 @@ public static class SpatialExtensions
startParameter += param1;
if (curve.IsInside(startParameter))
{
if (startParameter < _curveTolerance || originParameter < _curveTolerance)//过短返回空一般是0
if (startParameter < CurveTolerance || originParameter < CurveTolerance)//过短返回空一般是0
{
startCurve = null;
}