Stream: brlcad

Topic: annot bug


view this post on Zulip Sean (Dec 26 2017 at 19:46):

@Lucas Prieels you'd asked about the annot bug -- please repost your questions and comments here so others are in the loop

view this post on Zulip Sean (Dec 26 2017 at 19:51):

when looking in the typein.c file, start with the annotation input function (annot_in). maybe add some printing statements, recompile, and test them so you know what's going on

view this post on Zulip Lucas Prieels (Dec 26 2017 at 23:44):

Well basically, I think I understand that bu_vls_printf is the function used to convert the input to a string, so I suppose the bug is in this function but I haven't been able to find the bug in the function so I'll try what you say!

view this post on Zulip Sean (Dec 27 2017 at 06:01):

well from your original line analysis, you weren't in code being called by annot, so you may want to double-check the logic flow. maybe use some print statements or try a debugger tutorial. You're not likely going to find a bug by simply reading code unless you have a lot of prior experience.

view this post on Zulip Lucas Prieels (Dec 28 2017 at 16:22):

Are you sure the lines 3470 to 3473 are not called? I've tried to print something there and it's printed when I run "in". I've understand that nbvals stands for the number of arguments we have to give after "in ann1.s annot". I'll try to print some things more to understand

view this post on Zulip Sean (Dec 29 2017 at 15:07):

no, not that it's not called, but not specifically related to annot ... we may have been looking at different revisions though

view this post on Zulip Sean (Dec 29 2017 at 15:08):

the bug is definitely specific to annot, so it is "probably" in how annot is handling or storing things

view this post on Zulip Lucas Prieels (Dec 30 2017 at 02:42):

I now almost understand it all, but what is the function which actually draws the annot?

view this post on Zulip Sean (Dec 30 2017 at 06:27):

drawing happens via the *_plot() callback, in src/librt/primitives/annot/annot.c

view this post on Zulip Lucas Prieels (Jan 02 2018 at 12:04):

The label bug seems more complicated than I thought: actually the problem is not that numbers can't be shown. Any string which has a length of 2 characters or less is not shown(for example in ann annot 0 0 0 te 10 10 3 1), but numbers which have a length of 5 digits or more are shown (for example in ann annot 0 0 0 12345 10 10 3 1), so the bug is more complicated than just a string parsing problem...

view this post on Zulip Sean (Jan 02 2018 at 14:48):

@Lucas Prieels that's VERY interesting... would not have guessed it was length-based. perhaps there's something in libdm's plotting that is making it calculate a length wrong

view this post on Zulip Lucas Prieels (Jan 02 2018 at 15:43):

You're talking about src/libdm/dm-plot.c?
For now, I'm searching in src/libbn/font.c because bn_vlist_3string is the function which draw the ASCII characters but everything seems ok, the drawn lines are also good

view this post on Zulip Sean (Jan 02 2018 at 15:45):

quite possibly .. I just mean libdm in general handles the final drawing and is given a "draw this string" command from the primtive -- so either the primitive didn't give it the right string or it's handling the string wrong

view this post on Zulip Lucas Prieels (Jan 02 2018 at 16:27):

And in this case, which file is called? I didn't find any. It's difficult to figure out what are the functions called by typein.c which lead to the plot function

view this post on Zulip Lucas Prieels (Jan 03 2018 at 01:36):

@Sean Actually there were no bug in the functions I was looking at, but I can't figure out where the function rt_annot_import5 and rt_annot_plot are called...

view this post on Zulip Lucas Prieels (Jan 03 2018 at 01:37):

I know they're both part of the rt_functab structure, but there are a lot of files calling it

view this post on Zulip Nwankwo Ifeanyichukwu (Jan 03 2018 at 06:11):

My pleasure

view this post on Zulip Sean (Jan 03 2018 at 07:53):

I know they're both part of the rt_functab structure, but there are a lot of files calling it

if you search for 'ft_plot(', you'll find all the places the plot function is called ... you can do a similar search for import, but I don't think that is going to help you as that's just called whenever the object is read to/from disk (i.e., every time it's edited)

view this post on Zulip Rahil Malik (Jan 03 2018 at 09:48):

Hello, I have a problem while raytracing the hyp , i am building the hourglass , and when i group the hyp1.s into a region and give it any material and raytrace the Handle , Base and other stuff appears but the hyp1.s doesn' Show up

view this post on Zulip Rahil Malik (Jan 03 2018 at 10:57):

The Problem has ben solved , now i have some other troubles , while using mged, i have place a cone to represent sand in the hourglass now i coloured it light brown, now only at ae 45 45 can you see that the cone is full brown at all other angles its just light brown outline of a cone

view this post on Zulip Rahil Malik (Jan 03 2018 at 11:11):

Solved that one too , tthe problem was in the glass so i turned its refractive index low so the light rays dont bend too much and the sand is visivle

view this post on Zulip Rahil Malik (Jan 03 2018 at 17:29):

I am Curious , can some one tell me how BRL CAD chooses its Leaders for Google Code-in ?

view this post on Zulip Siddharth (Jan 03 2018 at 17:33):

I am Curious , can some one tell me how BRL CAD chooses its Leaders for Google Code-in ?

Hey @Rahil Malik Please ask such questions on "Having fun" or some random stream

view this post on Zulip Siddharth (Jan 03 2018 at 17:33):

Try not to spam topics : )

view this post on Zulip Rahil Malik (Jan 03 2018 at 17:38):

OK, i am sorry. I will follow your advice


Last updated: Oct 09 2024 at 00:44 UTC