필터 지우기
필터 지우기

How to add minimum radius of curvature limitation to 3D spline interpolation?

조회 수: 2 (최근 30일)
Shamsi Musayev
Shamsi Musayev 2020년 5월 14일
댓글: darova 2020년 5월 14일
I have 3D points data that a line should pass through these points. For this purpose I am using following code:
n = numel(xxx) ;
L = zeros(n,1) ;
for i=2:n
arc_length = sqrt((xxx(i)-xxx(i-1))^2+(yyy(i)-yyy(i-1))^2+(zzz(i)-zzz(i-1))^2);
L(i) = L(i-1) + arc_length;
end
% Normalize the arc lengths
L=L./L(n);
% do the spline
x_t = spline(L,xxx) ;
y_t = spline(L,yyy) ;
z_t = spline(L,zzz) ;
% for interpolation
tt = linspace(0,1,500) ;
xi = ppval(x_t,tt) ;
yi = ppval(y_t,tt) ;
zi = ppval(z_t,tt) ;
plot3(xi,yi,zi,'.b') ;
However, this line mimics seabed pipeline, therefore, there is a limitation for minimum radius of curvature. I need your opinions that how can I add that limitation to interpolation.
  댓글 수: 3
Shamsi Musayev
Shamsi Musayev 2020년 5월 14일
I have attached one set of input data but there will be a lot of this type of data. And graph illustrates result of my interpolation for uploaded set of data. I can write a code that it will check radius of curvature through determined points and if there are points that excess limitation it will remove those interpolated points for decreasing radius of curvature. However, I want to know that maybe there is a way that I can check that requirement during interpolation process.
darova
darova 2020년 5월 14일
The idea with curveture radius is ok. I don't have better ideas

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by