Hi again,<br><br>some extended information in the multipatch problem. The rendering problems (and interpretation of the multipatches as PolygonZM features) do only occur if there is a polygon with an inner hole (which is the case of the polygon 0 in the previously attached files).<br>
<br>I hope this helps<br>Oscar<br><br><div class="gmail_quote">2010/9/16 Oscar Gomez Mateu <span dir="ltr"><<a href="mailto:gomezmateu.oscar@gmail.com">gomezmateu.oscar@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>coming back on the Multipatch creation problem.<br><br>I created an application that takes 2D polygon shapes (attached 'simpleshape2.shp') and creates a 3D polygon shape imitating an extrusion. Every original polygon turns into a bottom polygon (at 0 height), top polygon (at RELELEV attribute height) and as many verticall walls as vertex has the original polygon. An example can be seen in the attached 'simpleshape2_extr.shp'. In ArcGIS I merge all the polygons with the same ID into a multipatch with the tool 'Layer 3D to Feature Class' and I get the attached 'simpleshape2_extr_merge.shp'.<br>
<br>I then modified my application to create a multipatch shape as similar as possible to the merged example. The result is the attached 'simpleshape2M_extr.shp'.<br><br>Doing a shapedump of the 2 end result shapes it is possible to see that they are (beside the M values) identical. But 'simpleshape2_extr_merge.shp' gets rendered in ArcScene and the features are considered 'MultipatchM' and 'simpleshape2M_extr.shp' is not rendered and the features are considered PolygonZM.<br>
<br>Any idea what could be wrong?<br><br>Thanks<br>Oscar<br><br><div class="gmail_quote">2010/9/14 Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a>></span><div>
<div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>
> Oscar Gomez Mateu wrote:<br>
>> I am having problems with the Multipatch creation. As an example, I<br>
>> create a Multipatch composed of 2 triangles in a TriangleFan (a<br>
>> horizontal square -4points-) and a Ring (a vertical square sharing on of<br>
>> the triangles lines -5 points-).<br>
<br>
<br>
</div>Oscar,<br>
<br>
The shpdump for your file, created with the shpdump utility distributed<br>
as part of shapelib looks like this:<br>
<br>
warmerda@gdal64[109]% shpdump testmultipatch.shp<br>
Shapefile Type: PolygonZ # of Shapes: 1<br>
<br>
File Bounds: ( 0.000, 0.000,0,5)<br>
to ( 10.000, 10.000,10,5)<br>
<br>
Shape:0 (MultiPatch) nVertices=9, nParts=2<br>
Bounds:( 0.000, 0.000, 0)<br>
to ( 10.000, 10.000, 10)<br>
( 0.000, 0.000, 10) TriangleFan<br>
( 10.000, 0.000, 10)<br>
( 10.000, 10.000, 10)<br>
( 0.000, 10.000, 10)<br>
+ ( 0.000, 0.000, 10) Ring<br>
( 0.000, 10.000, 10)<br>
( 0.000, 10.000, 0)<br>
( 0.000, 0.000, 0)<br>
( 0.000, 0.000, 10)<br>
<br>
I have not done a complete analysis but it looks roughly plausible.<br>
<br>
I can't comment on why this would not display properly in ArcScene.<br>
<div><div></div><div><br>
Best regards,<br>
--<br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush | Geospatial Programmer for Rent<br>
<br>
_______________________________________________<br>
Shapelib mailing list<br>
<a href="mailto:Shapelib@lists.maptools.org" target="_blank">Shapelib@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/shapelib" target="_blank">http://lists.maptools.org/mailman/listinfo/shapelib</a><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>