Post Reply 
LINE_P lines_definitions indexing BUG REPORT
11-21-2024, 09:48 PM
Post: #1
LINE_P lines_definitions indexing BUG REPORT
So I was trying to get LINE_P to work on all matrix inputs to deal with some performance issues with lists and I've found a couple bugs.

lines_definitions expects a matrix to be in row major form, with successive rows defining each line. However, during drawing, it only draws one line per column, so it will only ever draw eactly 3 or 4 lines, depending on lines_definition format.

-The lines drawn are correct, in that they are the first 3 or 4 rows of the matrix, it just doesn't draw the rest.

-Could the bug preventing zstring clipping from working properly for LINE/LINE_P be related to this?

-LINE_P currently doesn't accept Nx2 matrices, corresponding to the simple 2 index form of lines_definitions. This might relate to the minimum line count check if it's also incorrectly using the column index instead of row index.

Another related issue is that points_definitions and lines_definitions only accept matrices in row major format, which is different from TRIANGLE,/TRIANGLE_P which accepts both row major and column major layouts. This may not be a bug persay, but it is an inconsistancy.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)