样式demo
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user