Trimble Business Center

 View Only
Expand all | Collapse all

TBC5.2 - DXF gets bloated when surface contours are included

  • 1.  TBC5.2 - DXF gets bloated when surface contours are included

    Posted 12-05-2019 10:58

    I have an exported dxf that is 104mb when I include surface contours created by my modeled surface. If I turn off the surface contours and re-export, the file is only 9mb. 

     

    Anyone else seeing this behavior?

     

    #bug

     



  • 2.  Re: TBC5.2 - DXF gets bloated when surface contours are included

    Posted 12-05-2019 11:13

    Filtering the line vertices on these contours reduce the file size substantially. 



  • 3.  Re: TBC5.2 - DXF gets bloated when surface contours are included

    Posted 12-05-2019 14:42

    With contours created from a surface, could there be an additional setting for vertices filtering? Not turning on smooth contours helps but there are still a lot of unnecessary vertices.

     



  • 4.  Re: TBC5.2 - DXF gets bloated when surface contours are included

    Posted 12-06-2019 05:58

    I've found it absolutely necessary to run the Project Cleanup > Filter Vertices routine on the TBC created contours prior to doing anything with them because of the bloat. Especially if they are going into a machine control file. I agree that a predetermined vertice filtering option for the contour object would be helpful.  



  • 5.  Re: TBC5.2 - DXF gets bloated when surface contours are included

    Posted 12-06-2019 12:30

    A couple of comments.

    Surface contours and filtered polylines are two different things.  A surface contour (CAD polyline) works to a spline frame with the segments calculated from the frame.  It allows portions of the line to be pulled close to the vertex or more smoothly away from the vertex.  In the figure below the blue line has a surface sharpness of smooth while the red line is sharp.  You can see how the same contour line varies as they cross.  A contour line has a property to allow it to be smoothed or just show the spline frame.  When you smooth the line it is pulled away from the surface slightly.  Sending the unsmoothed contours to the field will create the smallest files.  The lines will be straight line interpolations along the triangles.  They they can later be set back to smooth.

     

    The problem that remains is when you have lots of very small triangles.  Unsmoothed lines will have a vertex at every triangle line.  In this case you may want to filter the lines and get a rougher approximation.

     

    Once you filter a line you no longer have the original spline frame and the elevation will not match the surface precisely.  These lines now become linestrings.  Note that when we export a linestring with a single elevation they are mapped to polylines.  Once filtered, the lines have to be re-created to get back to the original shape.

     

    Imported polylines used to create surfaces should be heavily smoothed to reduce the number of verticies in the surface.  You will save time and file size to clean up the surface as much as possible.

     

    So the user has a few methods to get the data to the field.  Ultimately we send out what you create as is, so that you get the same results as close as the two products can represent the same data.  We can't filter the lines as you will loose the original definition.

     



  • 6.  Re: TBC5.2 - DXF gets bloated when surface contours are included

    Posted 12-19-2019 11:50

    This is the way i have done it:

     

    Just make a plotbox and plot all contours, import the pdf and extract the lines and export them. My DXF files got aprox 10 times smaller. They are not 3D anymore but much smaller file.