OK...sorry for the unnecessary email traffic, I figured it out.  Here is 
the explanation for anyone that comes along looking in the future.

Turns out I was trying to reference the variables wrong.  I was doing:

bestNet = image->netlist[0]

Which wasn't working properly.

When I use:

bestNet = image->netlist->next;

All is good.  I also found the looping code to be:

for (net = image->netlist->next ; net != NULL; net = 
gerbv_image_return_next_renderable_object(net)) {

Thanks,
Curtis


On 4/2/2011 11:22 PM, Curtis C. Pope wrote:
> Hey guys,
>
> I am still working on my imaging utility.  I am trying to cycle through
> the netlist to find the border.
>
> When I open my file with  gerbv_open_layer_from_filename and try to
> access the netlist start_x and start_y values through the following path:
>
> Project->file->image->netlist
>
> I get all zeros returned.
>
> BUT when I open with gerbv_create_rs274x_image_from_filename
>
> I access through:
>
> image->netlist
>
> I get proper values.
>
> My question is...does gerbv_open_layer_from_filename populate the same
> data structures as gerbv_create_rs274x_image_from_filename?  Am I
> missing something?  At first I thought it was improper use of pointers,
> etc on my part, but that doesn't seem to be the case.
>
> I could open the file in question twice, once with each method, but that
> seems to be a waste.  I'm gonna dig into the gerbv code, but figured I
> would ask the question to see if I am missing something obvious.
>
> Thanks,
> Curtis
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> _______________________________________________
> Gerbv-devel mailing list
> Gerbv-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gerbv-devel
>
>


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel

Reply via email to