Post
by FieldConsult » 24 Jan 2017, 21:01
Thanks for the answer but the result is the same.
I am working with a very complex drawing, which contains a series of mesh, and one of which is composed of almost 10,000 faces of an origin of 20,000 points.
Each mesh is loaded from dwg file and its points are analysed in clockwise order and then sorted by angle to get the convex hull of the points cloud and the minimum rectangle between points, among other things. Each mesh has a complex data structure associated so I need to store all the information in a single file and not have to perform the analysis every time I read the file with the mesh.
In short, I load a serie of dwg files, each one containing a mesh and group them into a single CADImage, then I perform a series of complex geometric calculations, which require a certain amount of time to complete, so I want to record all the information in a series of streams that are grouped into a single stream file (multi stream file) for later use.
The idea is to load the file containing the multiple stream and get the calculation information immediately without having to recalculate everything one more time, which would be the case that you should read the files with mesh each time.
The only problem I have is when I group the different streams with the one originated by a CADImage, this stream is the first to be added to the file and the first to be read, the stream structure has an index position for each stream which allows to locate the stream to read it, but when I read the stream originated by CADImage I always get an empty image
I tried to write the contents of the CADImage to a temporary dwg file, then I load it on the CADImage itself (using KeepOriginal on True) and later I recorded that CADImage in a stream but, the result is the same, I get an empty CADImage.
Thanks!!