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

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

[Octave-bug-tracker] [bug #65431] crash after hgload certain data


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #65431] crash after hgload certain data
Date: Sat, 9 Mar 2024 16:07:59 -0500 (EST)

Follow-up Comment #57, bug #65431 (group octave):

comment #54 was me.  device keeps logging out of savannah and didn't want to
retype when i realized it. 

regarding that example - checking compatibility:  it works but produces a
warning in matlab:


Warning: Error creating or updating Patch
 Error in value of property FaceVertexCData
 Number of colors must equal number of vertices. 


what's actually stored in hp, x/ydata are 3x2 to match the 3 vertices per
face.  

Faces and Vertices are both:


>> hp.Faces

ans =

     1     2     3
     2     3     4

>> hp.Vertices

ans =

     0     0
     0     1
     1     0
     1     1



and CData and FaceVertexCData are both set to 

>> hp.CData
ans =

     1
     2
     3
     4
     5
     6

>> hp.FaceVertexCData
ans =

     1
     2
     3
     4
     5
     6


So, the CDATA and FVCD are strange, not actually matching the inputs, but they
are not changing the geometry.


@Liang Tang - can you please provide an example that crashes when you specify
FaceVertexCData?  I have not seen that yet.

We aim for functionality and compatibility, but we cannot mimic every
undocumented quirk of the other software. if we don't match documented
behavior, that's a bug. if we don't match undocumented behavior, that's a
decision after a good discussion, and past experience has typically had us err
on the side of not implementing undocumented features that are more that
trivial changes.  

At the moment I have been unable to generate a crash with your data when input
correctly as FaceVertexCData. So it doesn't require a reformat, just a rename
of that property when creating the patch.  if that is not correct we can
investigate further with that information. 


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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