<div class="gmail_quote"><div>Going on grasping the data structures...</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br></div><div> - Point example: a point doesn't have nodes but have a line (P_LINE), with type GV_POINT.</div><div>It's enough for me to get confused :)</div><div>A P_LINE structure has a void * topo opaque element [2], which will point to the relative topology structure depending on the type. In case of a G_POINT type, what is the topology structure attached to the topo pointer?</div>
</blockquote><div><br></div><div>Ok, as I supposed the topo pointer is NULL for points.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br></div><div> - Line example: two nodes with type GV_LINE. A P_NODE doesn't have a type [3], so how can it be... a GV_LINE? :(</div></blockquote><div><br></div><div>Sorry, this is clear now. The type is referring to the lines attached to the node.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>I'm missing something. Could you help to understand it?</div>
<div>Thanks a lot,</div><div>giovanni</div><div><br></div><div><br></div><div>[1] <a href="http://grass.osgeo.org/programming7/vlibTopology.html#vlibTopoExamples" target="_blank">http://grass.osgeo.org/programming7/vlibTopology.html#vlibTopoExamples</a></div>

<div>[2] <a href="http://grass.osgeo.org/programming7/structP__line.html" target="_blank">http://grass.osgeo.org/programming7/structP__line.html</a></div><div>[3] <a href="http://grass.osgeo.org/programming7/structP__node.html" target="_blank">http://grass.osgeo.org/programming7/structP__node.html</a><span class="HOEnZb"><font color="#888888"><br clear="all">

<div><br></div>-- <br>Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><br>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>

GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><br>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>
GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a>