@Lucas Prieels you'd asked about the annot bug -- please repost your questions and comments here so others are in the loop
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
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!
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.
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
no, not that it's not called, but not specifically related to annot ... we may have been looking at different revisions though
the bug is definitely specific to annot, so it is "probably" in how annot is handling or storing things
I now almost understand it all, but what is the function which actually draws the annot?
drawing happens via the *_plot() callback, in src/librt/primitives/annot/annot.c
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...
@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
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
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
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
@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...
I know they're both part of the rt_functab structure, but there are a lot of files calling it
My pleasure
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)
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
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
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
I am Curious , can some one tell me how BRL CAD chooses its Leaders for Google Code-in ?
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
Try not to spam topics : )
OK, i am sorry. I will follow your advice
Last updated: Jan 09 2025 at 00:46 UTC