help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ellipse arc


From: Doug Stewart
Subject: Re: ellipse arc
Date: Sun, 15 Sep 2019 11:05:55 -0400



On Sun, Sep 15, 2019 at 10:43 AM titusdt <address@hidden> wrote:
Hello,

I am trying to picture a sphere in perspective using the ellipseArc function

Here is my MWE : it seems like ellipseArc can't properly complete the
ellipse arc for angles 180 to 360°. Unless I'm doing something wrong ?

%%%%%%%%%%%%%%%%%%%
% 3D earth with girth
figure(1);clf
drawCircle(0,0,2,'Color','k');
axis square
hold on;
%drawEllipseArc([0,0,2,.1,0,0,180],'Color','k','LineStyle','--');
drawEllipseArc([0,0,2,.1,182,350],'Color','k');

hold off
axis off
%%%%%%%%%%%%%%%%%%%%

<https://octave.1599824.n4.nabble.com/file/t373487/untitled.jpg>

Best regards
Augustin



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html




You might want to edit drawEllipseArc.m
and change the 60 on line 126 to a bigger number so that you get a smother curve.
I tried 600 and it made a nice picture from  your code.




--
DASCertificate for 206392


reply via email to

[Prev in Thread] Current Thread [Next in Thread]