Hello!
I have a problem with import of polygon objects from csv-file into Discover 3D. Here are the details:
1) I need to create polygon objects programmatically, setting coordinates of points manually. So, I calculate the coordinates and create csv file the way MapInfo Discover does:
ObjNo,ObjType,X,Y,Z,"FeatureID","Name","XCentre","YCentre","ZCentre","Value","Colour","Description","Type","Length","Area","Volume"
3,POLYGON,-13628.759765625,8781.1298828125,0.7666015625,3,"Polyhedrion_3",0,0,0,0,0,,"Polygon",0,0,0,
3,POLYGON,-13629.4296875,8783.6298828125,3057.7666015625,3,"Polyhedrion_3",0,0,0,0,0,,"Polygon",0,0,0,
3,POLYGON,-13631.259765625,8785.4599609375,5057.7666015625,3,"Polyhedrion_3",0,0,0,0,0,,"Polygon",0,0,0,
3,POLYGON,-13628.759765625,8781.1298828125,0.7666015625,3,"Polyhedrion_3",0,0,0,0,0,,"Polygon",0,0,0,
2) Then, I import data into my MapInfo Discover project (via Discover/File -> Import -> ASCII Import). It’s something like this:
3) In Modify Tab I use Object Builder to build polygons from these points:
After that I get new .tab file, which has the following data:
As we can see, an object now has only one Z coordinate, there are no more information about polygons vertices.
Could you explain me, please, where I can see that information and how I can change it?
The problem is: when I import that .tab information into MapInfo Discover 3D Feature database, there is only one z coordinate for all vertexes of polygon (the same as indicated in the table above: 0,766602). Is there any way to keep original z coordinates for all vertexes of polygons as described in my .csv file?
So, when I import my .tab file into the feature database, my polygon is parallel to z axis now =( :
By double clicking the row, I can see coordinates. Z coordinate is equal for all polygons vertices:
Version of program: MapInfo Discover 16.0 (64 bit) release build 26,
Operating System: Windows 8 x64
Thank you in advance!
Have a nice day!
I have just tried it, and for some tasks, it definitely works well. Nice advice, thanks!
However, I forgot to mention that all this process should be able to be done automatically: we have hundreds of such figures and we are searching for the way to import them as separate objects (as we did using Object Builder).
By selecting all those points and using Triangulate, I get one huge object like this (instead, I want to get many separate small objects):
Is it possible to complete this task using .dxf or other vector formats, which can be modified programmatically outside MapInfo products (or using MapBasic as well)?