This document features documentation on how to use config files.
This file contains all the necessary information for the parser to be able to parse the project documentation. Config file is divided into tables (sections) for easier organization. Each section MUST look like this:
[name_of_the_table]
parser_type = "dxf" # dxf, image and GIS values are supported
path = "dxf/two_rectangles_no_dimensions.dxf" # path to the file
flip_y = false # flip by Y axis, used only by image extractor
remove_colinear = false # merge colinear points in a polygon, used only by image extractor
simplify_tolerance = 0.0 # threshold value controlling the level of simplification, used only by image extractor
coords = [
[
[-100.0, 0.0],
[0.0, 0.0],
[0.0, 100.0],
],
[
[200.0, -100.0],
[300.0, -100.0],
[300.0, 0.0],
]
] # first level array holds arrays for each polygon, second level array holds arrays where an array is a coordinate of a single point; only first 3 points are enough to override, rest of points are automatically calculated
depth = [100, 50] # depth of extracted polygons, an array for each polygon
scale = 2.0 # scale coefficient for all polygons
hole = true # are extracted polygons place to dig or dump soil
debug = false # turn debug mode on
grid_size = 25 # spacing between two lines in a grid (excluding breakpoints)
min_spacing = 10.0 # minimum spacing between two lines in a grid (used when they are too many breakpoints, e.g. curved segments of a polygon)As you see, polygons from the same file share certain properties (e.g. hole property).
Following design is applied:
SECTION_NAME-VALUE_OF_HOLE_VARIABLE
\tPOLYGON {i}
\t\tPOLYGON Z((0 0 100, 100 0 100, 100 100 100, 0 100 100))
In embedder polygons are divided into smaller polygons based on line divisions. We just group them here for the sake of easier organization.