Fast and Robust Self-Intersections

Computes the self-intersections of a curve.

現在この提出コンテンツをフォロー中です。

This function computes the locations where a curve self-intersects in a fast and robust way. The curve can be broken with NaNs or have vertical segments. Segments of the curve involved in each of the self-interesections are also provided.

Example of use:
N=201;
th=linspace(-3*pi,4*pi,N);
R=1;
x=R*cos(th)+linspace(0,6,N);
y=R*sin(th)+linspace(0,1,N);
t0=clock;
[x0,y0,segments]=selfintersect(x,y)
etime(clock,t0)
plot(x,y,'b',x0,y0,'.r');
axis ('equal'); grid

引用

Antoni J. Canós (2026). Fast and Robust Self-Intersections (https://jp.mathworks.com/matlabcentral/fileexchange/13351-fast-and-robust-self-intersections), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: Fast and Robust Curve Intersections

ヒントを与えたファイル: Accurate polygon extension, FGT - Fold Geometry Toolbox

カテゴリ

Help Center および MATLAB AnswersInterpolation についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0