octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #65422] Octave patch does not plot patch if po


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #65422] Octave patch does not plot patch if points create a straight line
Date: Wed, 20 Mar 2024 08:37:26 -0400 (EDT)

Follow-up Comment #5, bug #65422 (group octave):

IIUC, you are comparing the time that it takes to create a single patch object
to the time it takes to create 1001 line objects.
Obviously, creating 1001 line objects will take longer.

If you compare the time for creating 1 patch object to the time for creating 1
line object, the line object is faster here.
E.g., after having run your example:

>> tic, h_tri=patch('Vertices',     vert(:,2:end),'Faces',
faces,'FaceColor',[1 0 0],'EdgeColor', [1 0 0],'FaceAlpha', 0.2, 'LineWidth',
1 ); toc
Elapsed time is 0.0061202 seconds.
>> tic, l=line(xd(:),yd(:),zd(:), 'color', 'r'); toc
Elapsed time is 0.00542593 seconds.


Anyway, this discussion is off-topic to this report. Please, ask questions
about how to use Octave on the discourse forum:
https://octave.discourse.group/



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65422>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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