- in copy_to_cpu if gpu_seg->seg_sti is zero the cpu_seg->seg_stp->st_id
> will be uninitialized. worse. you are writing to an uninitialized pointer.
> what I think you want to do is lookup the seg_stp pointer based on the
> seg_sti id and use that to initialize the cpu->seg_stp pointer field.
>
I can't find the relevant code that initializes the seg_stp. The rt_shot
methods in primitive files simply copy the passed soltab pointer. In
shootray(), this is obtained from a cutter, which is a union for space
partitioning.
My understanding is that the structure soltab keeps track of all the
relevant information pertaining to a solid (primitive). On the GPU side,
only ID (seg_sti) is used. How do I initialize the cpu->seg_stp field?
Thanks,
Param
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel